Class SimpleModelPort<T extends Serializable>

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 use PMMLPort's. A simple model has no associate meta-data; it consists of a single java-serializable object.
  • Method Details

    • getMetadata

      public com.pervasive.datarush.ports.model.SimpleModelPort.Metadata<T> getMetadata(T model)
      Description copied from class: AbstractModelPort
      Returns the metadata associate with the model. (Given a model, we should always be able to get its metadata.
      Specified by:
      getMetadata in class AbstractModelPort<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: LogicalPort
      Returns the class of metadata that this port uses
      Specified by:
      getMetadataType in class LogicalPort
      Returns:
      the class of metadata that this port uses
    • getFactory

      public SimpleModelPort.Factory<T> getFactory()
      Description copied from class: LogicalPort
      Returns the factory that knows how to create ports of this type
      Specified by:
      getFactory in class AbstractModelPort<T extends Serializable>
      Returns:
      the factory that knows how to create ports of this type