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 Detail

      • 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