Module datarush.library
Class SimpleModelPort.Factory<T extends Serializable>
java.lang.Object
com.pervasive.datarush.ports.LogicalPortFactory<P>
com.pervasive.datarush.ports.model.AbstractModelPortFactory<T,SimpleModelPort<T>>
com.pervasive.datarush.ports.model.SimpleModelPort.Factory<T>
- Type Parameters:
T- the type of the model object
- Enclosing class:
- SimpleModelPort<T extends Serializable>
public static final class SimpleModelPort.Factory<T extends Serializable>
extends AbstractModelPortFactory<T,SimpleModelPort<T>>
Factory for creating SimpleModelPorts
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the java class of the modelcom.pervasive.datarush.graphs.internal.LogicalPortProviderPublic only as a matter of implementation; clients should not use this method directly.final ModelStorageHandler<T>Returns the storage handler for this model port.newPort(LogicalOperator owner, String name, LogicalPort.Direction direction, boolean optional) Public only as a matter of implementation; clients should not use this method directly.
-
Constructor Details
-
Factory
Creates a factory for simple model ports- Parameters:
modelClass- the type of the model object
-
-
Method Details
-
newPort
public SimpleModelPort<T> newPort(LogicalOperator owner, String name, LogicalPort.Direction direction, boolean optional) Description copied from class:LogicalPortFactoryPublic only as a matter of implementation; clients should not use this method directly. Clients should create ports via one of the factory methods onAbstractLogicalOperator. For example usenewRecordInputto create a record input port.- Specified by:
newPortin classLogicalPortFactory<SimpleModelPort<T extends Serializable>>- Parameters:
owner- the owner of the portname- the name of the portdirection- the port directionoptional- whether the port is optional- Returns:
- a new port
-
getStorageHandler
Returns the storage handler for this model port. SimpleModelPorts always use aSerializableModelStorageHandler.- Returns:
- the storage handle for this model port
-
getModelClass
Returns the java class of the model- Returns:
- the java class of the model
-
getProvider
public com.pervasive.datarush.graphs.internal.LogicalPortProvider getProvider()Description copied from class:LogicalPortFactoryPublic only as a matter of implementation; clients should not use this method directly.- Overrides:
getProviderin classAbstractModelPortFactory<T extends Serializable,SimpleModelPort<T extends Serializable>> - Returns:
- a provider
-