- java.lang.Object
-
- com.pervasive.datarush.operators.AbstractLogicalOperator
-
- com.pervasive.datarush.operators.CompositeOperator
-
- com.pervasive.datarush.analytics.pmml.ReadPMML
-
- All Implemented Interfaces:
LogicalOperator
public final class ReadPMML extends CompositeOperator
Reads a PMML model object from a file.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
compose(CompositionContext ctx)
Compose the body of this operator.String
getFilePath()
Returns the file to read fromPMMLPort
getOutput()
Returns the output port that will contain the PMML model that is read from the file.void
setFilePath(String filePath)
Sets the file to read from-
Methods inherited from class com.pervasive.datarush.operators.AbstractLogicalOperator
disableParallelism, getInputPorts, getOutputPorts, newInput, newInput, newOutput, newRecordInput, newRecordInput, newRecordOutput, notifyError
-
-
-
-
Method Detail
-
getFilePath
public String getFilePath()
Returns the file to read from- Returns:
- the file to read from
-
setFilePath
public void setFilePath(String filePath)
Sets the file to read from- Parameters:
filePath
- the file to read from
-
getOutput
public PMMLPort getOutput()
Returns the output port that will contain the PMML model that is read from the file.- Returns:
- the output port that will contain the PMML model
-
compose
protected void compose(CompositionContext ctx)
Description copied from class:CompositeOperator
Compose the body of this operator. Implementations should do the following:- Perform any validation of configuration, input types, etc
- Instantiate and configure sub-operators, adding them to the provided context via
the method
OperatorComposable.add(O)
- Create necessary connections via the method
OperatorComposable.connect(P, P)
. This includes connections from the composite's input ports to sub-operators, connections between sub-operators, and connections from sub-operators output ports to the composite's output ports
- Specified by:
compose
in classCompositeOperator
- Parameters:
ctx
- the context
-
-