- java.lang.Object
-
- com.pervasive.datarush.ports.model.AbstractModelPortMetadata
-
- All Implemented Interfaces:
PortMetadata
- Direct Known Subclasses:
PMMLPort.Metadata
public abstract class AbstractModelPortMetadata extends Object implements PortMetadata
Base class for model metadata. Client's should generally not need to extend since there are predefined metadata classes associated with the built-in typesSimpleModelPort
or {code PMMLPort}.- See Also:
AbstractModelPort
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractModelPortMetadata(ModelStorageHandler<?> storageHandler, ModelMergeHandler<?> mergeHandler)
Creates a model port metadata
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ModelMergeHandler<?>
getMergeHandler()
Returns the merge handler used to merge model partitions.Class<?>
getModelClass()
Returns the model's java type.ModelStorageHandler<?>
getStorageHandler()
Returns the storage handler for storing models of this type.protected abstract AbstractModelPortMetadata
withMergeHandler(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, wait
-
Methods inherited from interface com.pervasive.datarush.ports.PortMetadata
getPortFactory
-
-
-
-
Constructor Detail
-
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 Detail
-
getModelClass
public final Class<?> getModelClass()
Returns the model's java type.- Returns:
- the model's java type
-
getStorageHandler
public final ModelStorageHandler<?> getStorageHandler()
Returns the storage handler for storing models of this type.- Returns:
- the storage handler for storing models of this type.
-
getMergeHandler
public final ModelMergeHandler<?> 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
protected abstract AbstractModelPortMetadata withMergeHandler(ModelMergeHandler<?> mergeHandler)
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
-
-