public class FrequentItems extends CompositeOperator implements RecordPipelineOperator
The main output of this operator is the set of frequent items. Two fields are output, the item field from the input and the frequency count of the item.
The operator also outputs a PMML port that contains an association model. The model will be partially filled in with frequent items and transaction statistics.
Constructor and Description |
---|
FrequentItems()
Default constructor.
|
FrequentItems(String txnFieldName,
String itemFieldName,
double minSupport)
Construct with properties.
|
Modifier and Type | Method and Description |
---|---|
protected void |
compose(CompositionContext ctx)
Compose the body of this operator.
|
RecordPort |
getInput()
Get the input port of this operator.
|
String |
getItemFieldName()
Get the item field name property.
|
String |
getLabelFieldName()
Get the optional label field name property.
|
double |
getMinSupport()
Get the minimum support property.
|
PMMLPort |
getModel()
Get the output PMML model port of this plan operator.
|
RecordPort |
getOutput()
Get the output port of this operator.
|
String |
getTxnFieldName()
Get the transaction field name property.
|
void |
setItemFieldName(String itemFieldName)
Set the item field name property.
|
void |
setLabelFieldName(String labelFieldName)
Set the optional label field name property.
|
void |
setMinSupport(double minSupport)
Set the minimum support property.
|
void |
setTxnFieldName(String txnFieldName)
Set the transaction field name property.
|
disableParallelism, getInputPorts, getOutputPorts, newInput, newInput, newOutput, newRecordInput, newRecordInput, newRecordOutput, notifyError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
disableParallelism, getInputPorts, getOutputPorts
public FrequentItems()
public FrequentItems(String txnFieldName, String itemFieldName, double minSupport)
txnFieldName
- name of the field containing the transaction identifieritemFieldName
- name of the field containing the item nameminSupport
- minimum support percentage (must be between 0 and 1)public RecordPort getInput()
getInput
in interface PipelineOperator<RecordPort>
public RecordPort getOutput()
getOutput
in interface PipelineOperator<RecordPort>
public PMMLPort getModel()
public String getTxnFieldName()
public void setTxnFieldName(String txnFieldName)
txnFieldName
- transaction field namepublic String getItemFieldName()
public void setItemFieldName(String itemFieldName)
itemFieldName
- item field namepublic double getMinSupport()
public void setMinSupport(double minSupport)
minSupport
- minimum support percentagepublic String getLabelFieldName()
public void setLabelFieldName(String labelFieldName)
labelFieldName
- label field nameprotected void compose(CompositionContext ctx)
CompositeOperator
OperatorComposable.add(O)
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 portscompose
in class CompositeOperator
ctx
- the contextCopyright © 2024 Actian Corporation. All rights reserved.