Class SimpleModelPort.Factory<T extends Serializable>

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 Details

    • Factory

      public Factory(Class<T> modelClass)
      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: 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 on AbstractLogicalOperator. For example use newRecordInput to create a record input port.
      Specified by:
      newPort in class LogicalPortFactory<SimpleModelPort<T extends Serializable>>
      Parameters:
      owner - the owner of the port
      name - the name of the port
      direction - the port direction
      optional - 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 a SerializableModelStorageHandler.
      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 class AbstractModelPortFactory<T extends Serializable,SimpleModelPort<T extends Serializable>>
      Returns:
      a provider