IN
- Input type of the user functionOUT
- Output type of the user functionFT
- Type of the user function@Internal public abstract class SingleInputOperator<IN,OUT,FT extends Function> extends AbstractUdfOperator<OUT,FT>
Modifier and Type | Field and Description |
---|---|
protected Operator<IN> |
input
The input which produces the data consumed by this operator.
|
broadcastInputs, userFunction
compilerHints, name, operatorInfo, parameters
Modifier | Constructor and Description |
---|---|
protected |
SingleInputOperator(UserCodeWrapper<FT> stub,
UnaryOperatorInformation<IN,OUT> operatorInfo,
int[] keyPositions,
String name)
Creates a new abstract single-input operator with the given name wrapping the given user function.
|
protected |
SingleInputOperator(UserCodeWrapper<FT> stub,
UnaryOperatorInformation<IN,OUT> operatorInfo,
String name)
Creates a new abstract single-input operator with the given name wrapping the given user function.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor<Operator<?>> visitor)
Accepts the visitor and applies it this instance.
|
void |
addInput(List<Operator<IN>> inputs)
Deprecated.
This method will be removed in future versions. Use the
Union operator instead. |
void |
addInput(Operator<IN>... input)
Deprecated.
This method will be removed in future versions. Use the
Union operator instead. |
void |
clearInputs()
Removes all inputs.
|
protected abstract List<OUT> |
executeOnCollections(List<IN> inputData,
RuntimeContext runtimeContext,
ExecutionConfig executionConfig) |
Operator<IN> |
getInput()
Returns the input operator or data source, or null, if none is set.
|
int[] |
getKeyColumns(int inputNum)
Gets the column numbers of the key fields in the input records for the given input.
|
int |
getNumberOfInputs()
Gets the number of inputs for this operator.
|
UnaryOperatorInformation<IN,OUT> |
getOperatorInfo()
Gets the information about the operators input/output types.
|
SingleInputSemanticProperties |
getSemanticProperties() |
void |
setInput(Operator<IN>... input)
Deprecated.
This method will be removed in future versions. Use the
Union operator instead. |
void |
setInput(Operator<IN> input)
Sets the given operator as the input to this operator.
|
void |
setInputs(List<Operator<IN>> inputs)
Deprecated.
This method will be removed in future versions. Use the
Union operator instead. |
void |
setSemanticProperties(SingleInputSemanticProperties semanticProperties) |
asArray, emptyClassArray, getBroadcastInputs, getUserCodeWrapper, setBroadcastVariable, setBroadcastVariables
createUnionCascade, createUnionCascade, createUnionCascade, getCompilerHints, getMinResources, getName, getParallelism, getParameters, getPreferredResources, setName, setParallelism, setParameter, setParameter, setParameter, setResources, toString
protected SingleInputOperator(UserCodeWrapper<FT> stub, UnaryOperatorInformation<IN,OUT> operatorInfo, int[] keyPositions, String name)
stub
- The object containing the user function.keyPositions
- The field positions of the input records that act as keys.name
- The given name for the operator, used in plans, logs and progress messages.protected SingleInputOperator(UserCodeWrapper<FT> stub, UnaryOperatorInformation<IN,OUT> operatorInfo, String name)
stub
- The object containing the user function.name
- The given name for the operator, used in plans, logs and progress messages.public UnaryOperatorInformation<IN,OUT> getOperatorInfo()
getOperatorInfo
in class Operator<OUT>
public Operator<IN> getInput()
public void clearInputs()
public void setInput(Operator<IN> input)
input
- The operator to use as the input.@Deprecated public void setInput(Operator<IN>... input)
Union
operator instead.input
- The operator(s) that form the input.@Deprecated public void setInputs(List<Operator<IN>> inputs)
Union
operator instead.inputs
- The operator(s) that form the input.@Deprecated public void addInput(Operator<IN>... input)
Union
operator instead.input
- The operator(s) that form the input.@Deprecated public void addInput(List<Operator<IN>> inputs)
Union
operator instead.inputs
- The operator(s) that form the input.public SingleInputSemanticProperties getSemanticProperties()
public void setSemanticProperties(SingleInputSemanticProperties semanticProperties)
public final int getNumberOfInputs()
AbstractUdfOperator
getNumberOfInputs
in class AbstractUdfOperator<OUT,FT extends Function>
public int[] getKeyColumns(int inputNum)
AbstractUdfOperator
getKeyColumns
in class AbstractUdfOperator<OUT,FT extends Function>
public void accept(Visitor<Operator<?>> visitor)
visitor
- The visitor.Visitable.accept(org.apache.flink.util.Visitor)
protected abstract List<OUT> executeOnCollections(List<IN> inputData, RuntimeContext runtimeContext, ExecutionConfig executionConfig) throws Exception
Exception
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.