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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<T>
getModelClass()
Returns the java class of the modelcom.pervasive.datarush.graphs.internal.LogicalPortProvider
getProvider()
Public only as a matter of implementation; clients should not use this method directly.ModelStorageHandler<T>
getStorageHandler()
Returns the storage handler for this model port.SimpleModelPort<T>
newPort(LogicalOperator owner, String name, LogicalPort.Direction direction, boolean optional)
Public only as a matter of implementation; clients should not use this method directly.
-
-
-
Method Detail
-
newPort
public SimpleModelPort<T> newPort(LogicalOperator owner, String name, LogicalPort.Direction direction, boolean optional)
Description copied from class:LogicalPortFactory
Public 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 usenewRecordInput
to create a record input port.- Specified by:
newPort
in 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
public final ModelStorageHandler<T> getStorageHandler()
Returns the storage handler for this model port. SimpleModelPorts always use aSerializableModelStorageHandler
.- Returns:
- the storage handle for this model port
-
getModelClass
public Class<T> 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:LogicalPortFactory
Public only as a matter of implementation; clients should not use this method directly.- Overrides:
getProvider
in classAbstractModelPortFactory<T extends Serializable,SimpleModelPort<T extends Serializable>>
- Returns:
- a provider
-
-