java.lang.Object
com.pervasive.datarush.ports.model.AbstractModelPortMetadata
- All Implemented Interfaces:
PortMetadata
- Direct Known Subclasses:
PMMLPort.Metadata
Base class for model metadata.
Client's should generally not
need to extend since there are predefined metadata classes associated with the
built-in types
SimpleModelPort or {code PMMLPort}.- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractModelPortMetadata(ModelStorageHandler<?> storageHandler, ModelMergeHandler<?> mergeHandler) Creates a model port metadata -
Method Summary
Modifier and TypeMethodDescriptionfinal ModelMergeHandler<?>Returns the merge handler used to merge model partitions.final Class<?>Returns the model's java type.final ModelStorageHandler<?>Returns the storage handler for storing models of this type.protected abstract AbstractModelPortMetadatawithMergeHandler(ModelMergeHandler<?> mergeHandler) Subclasses override to return a metadata, equivalent to this, with the specified merge handler.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pervasive.datarush.ports.PortMetadata
getPortFactory
-
Constructor Details
-
AbstractModelPortMetadata
protected AbstractModelPortMetadata(ModelStorageHandler<?> storageHandler, ModelMergeHandler<?> mergeHandler) Creates a model port metadata- Parameters:
storageHandler- the storage handle for this model class. Must be non-nullmergeHandler- the merge handler. this is optional and should only be set on inbound (required) metadata.
-
-
Method Details
-
getModelClass
Returns the model's java type.- Returns:
- the model's java type
-
getStorageHandler
Returns the storage handler for storing models of this type.- Returns:
- the storage handler for storing models of this type.
-
getMergeHandler
Returns the merge handler used to merge model partitions. This is optional and should only be set on inbound (required) metadata.- Returns:
- the merge handler used to merge model partitions
-
withMergeHandler
Subclasses override to return a metadata, equivalent to this, with the specified merge handler.- Parameters:
mergeHandler- the merge handle- Returns:
- a new metadata, equivalent to this, with the specified merge handler
-