java.lang.Object
com.pervasive.datarush.ports.LogicalPort
com.pervasive.datarush.ports.model.AbstractModelPort<PMMLModel>
com.pervasive.datarush.analytics.pmml.PMMLPort
Specialization of model ports for handling PMML models. Like model ports,
the PMML model is duplicated to parallel downstream nodes when transmitted from
a non-parallel node. (This would be a typical "predictor" scenario where a copy of a
a model is used to predict in all data partitions). Similarly, when
transmitted from parallel to non-parallel a gather is performed and thus a merge handler must
be specified.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe port metadata associated with PMMLPorts.Nested classes/interfaces inherited from class com.pervasive.datarush.ports.LogicalPort
LogicalPort.Direction -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AbstractModelPortFactory<PMMLModel,PMMLPort> A factory for PMML ports. -
Method Summary
Modifier and TypeMethodDescriptionReturns the factory that knows how to create ports of this typegetMetadata(PMMLModel model) Returns the metadata associate with the model.Class<? extends PortMetadata>Returns the class of metadata that this port usesGetter to be used to set the PMMLModelSpec for a PMMLPortvoidSetter to be used to set the PMMLModelSpec for PMML ports.Methods inherited from class com.pervasive.datarush.ports.model.AbstractModelPort
getModel, getModelClass, getStorageHandler, setMergeHandler, setModelMethods inherited from class com.pervasive.datarush.ports.LogicalPort
getDirection, getName, getOwner, isOptional, toString
-
Field Details
-
FACTORY
A factory for PMML ports.
-
-
Method Details
-
getFactory
Description copied from class:LogicalPortReturns the factory that knows how to create ports of this type- Specified by:
getFactoryin classAbstractModelPort<PMMLModel>- Returns:
- the factory that knows how to create ports of this type
-
setPMMLModelSpec
Setter to be used to set the PMMLModelSpec for PMML ports.- Parameters:
ctx- the metadata contextspec- the PMMLModelSpec; may be null in which case we declare metadata to be dynamic
-
getPMMLModelSpec
Getter to be used to set the PMMLModelSpec for a PMMLPort- Parameters:
ctx- the metadata context- Returns:
- the PMMLModelSpec
-
getMetadata
Description copied from class:AbstractModelPortReturns the metadata associate with the model. (Given a model, we should always be able to get its metadata.- Specified by:
getMetadatain classAbstractModelPort<PMMLModel>- Parameters:
model- the model object- Returns:
- the metadata
-
getMetadataType
Description copied from class:LogicalPortReturns the class of metadata that this port uses- Specified by:
getMetadataTypein classLogicalPort- Returns:
- the class of metadata that this port uses
-