public final class DistinctValues extends AbstractRecordCompositeOperator
input, output
Constructor and Description |
---|
DistinctValues()
Default constructor.
|
DistinctValues(String inputField)
Computes distinct values for the given input field
|
Modifier and Type | Method and Description |
---|---|
protected void |
compose(CompositionContext ctx)
Compose the body of this operator.
|
RecordPort |
getInput()
Returns the input port
|
String |
getInputField()
Returns the input field for which we calculate distinct values
|
RecordPort |
getOutput()
Returns the output port
|
boolean |
isFewDistinctValuesHint()
Returns a hint as to whether there are expected to be a small number of distinct values.
|
boolean |
isSortByCount()
Returns whether to sort by value count.
|
void |
setFewDistinctValuesHint(boolean fewDistinctValuesHint)
Sets a hint as to whether there are expected to be a small number of distinct values.
|
void |
setInputField(String inputField)
Sets the input field for which we calculate distinct values
|
void |
setSortByCount(boolean sortByCount)
Sets whether to sort by value count.
|
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 DistinctValues()
public DistinctValues(String inputField)
inputField
- the input field for which we calculate distinct valuespublic RecordPort getInput()
PipelineOperator
getInput
in interface PipelineOperator<RecordPort>
getInput
in class AbstractRecordCompositeOperator
public RecordPort getOutput()
PipelineOperator
getOutput
in interface PipelineOperator<RecordPort>
getOutput
in class AbstractRecordCompositeOperator
public String getInputField()
public void setInputField(String inputField)
inputField
- the input field for which we calculate distinct valuespublic boolean isSortByCount()
public void setSortByCount(boolean sortByCount)
sortByCount
- whether to sort by value countpublic boolean isFewDistinctValuesHint()
public void setFewDistinctValuesHint(boolean fewDistinctValuesHint)
fewDistinctValuesHint
- whether few distinct values are expectedprotected 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 © 2016 Actian Corporation. All rights reserved.