Module datarush.library
Class SimpleModelPort<T extends Serializable>
java.lang.Object
com.pervasive.datarush.ports.LogicalPort
com.pervasive.datarush.ports.model.AbstractModelPort<T>
com.pervasive.datarush.ports.model.SimpleModelPort<T>
- Type Parameters:
T- the type of the model object
A simple implementation for model ports. Note that this is generally only used
for building internal models. External models should always use
PMMLPort's.
A simple model has no associate meta-data; it consists of a single java-serializable object.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSimpleModelPort.Factory<T extends Serializable>Factory for creating SimpleModelPortsNested classes/interfaces inherited from class com.pervasive.datarush.ports.LogicalPort
LogicalPort.Direction -
Method Summary
Modifier and TypeMethodDescriptionReturns the factory that knows how to create ports of this typecom.pervasive.datarush.ports.model.SimpleModelPort.Metadata<T>getMetadata(T model) Returns the metadata associate with the model.Returns the class of metadata that this port usesMethods inherited from class com.pervasive.datarush.ports.model.AbstractModelPort
getModel, getModelClass, getStorageHandler, setMergeHandler, setModelMethods inherited from class com.pervasive.datarush.ports.LogicalPort
getDirection, getName, getOwner, isOptional, toString
-
Method Details
-
getMetadata
Description copied from class:AbstractModelPortReturns the metadata associate with the model. (Given a model, we should always be able to get its metadata.- Specified by:
getMetadatain classAbstractModelPort<T extends Serializable>- Parameters:
model- the model object- Returns:
- the metadata
-
getMetadataType
Description copied from class:LogicalPortReturns the class of metadata that this port uses- Specified by:
getMetadataTypein classLogicalPort- Returns:
- the class of metadata that this port uses
-
getFactory
Description copied from class:LogicalPortReturns the factory that knows how to create ports of this type- Specified by:
getFactoryin classAbstractModelPort<T extends Serializable>- Returns:
- the factory that knows how to create ports of this type
-