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
public final class SimpleModelPort<T extends Serializable> extends AbstractModelPort<T>
A simple implementation for model ports. Note that this is generally only used for building internal models. External models should always usePMMLPort's. A simple model has no associate meta-data; it consists of a single java-serializable object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSimpleModelPort.Factory<T extends Serializable>Factory for creating SimpleModelPorts-
Nested classes/interfaces inherited from class com.pervasive.datarush.ports.LogicalPort
LogicalPort.Direction
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleModelPort.Factory<T>getFactory()Returns 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.Class<com.pervasive.datarush.ports.model.SimpleModelPort.Metadata<T>>getMetadataType()Returns the class of metadata that this port uses-
Methods inherited from class com.pervasive.datarush.ports.model.AbstractModelPort
getModel, getModelClass, getStorageHandler, setMergeHandler, setModel
-
Methods inherited from class com.pervasive.datarush.ports.LogicalPort
getDirection, getName, getOwner, isOptional, toString
-
-
-
-
Method Detail
-
getMetadata
public com.pervasive.datarush.ports.model.SimpleModelPort.Metadata<T> getMetadata(T model)
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
public Class<com.pervasive.datarush.ports.model.SimpleModelPort.Metadata<T>> 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
public SimpleModelPort.Factory<T> 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
-
-