IN - The type of the elements in the input TransformationOUT - The type of the elements that result from this OneInputTransformation@Internal public class OneInputTransformation<IN,OUT> extends PhysicalTransformation<OUT>
OneInputStreamOperator to one input Transformation.| Constructor and Description |
|---|
OneInputTransformation(org.apache.flink.api.dag.Transformation<IN> input,
String name,
OneInputStreamOperator<IN,OUT> operator,
org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outputType,
int parallelism)
Creates a new
OneInputTransformation from the given input and operator. |
OneInputTransformation(org.apache.flink.api.dag.Transformation<IN> input,
String name,
StreamOperatorFactory<OUT> operatorFactory,
org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outputType,
int parallelism) |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.flink.api.dag.Transformation<?>> |
getInputs() |
org.apache.flink.api.common.typeinfo.TypeInformation<IN> |
getInputType()
Returns the
TypeInformation for the elements of the input. |
OneInputStreamOperator<IN,OUT> |
getOperator() |
StreamOperatorFactory<OUT> |
getOperatorFactory()
Returns the
StreamOperatorFactory of this Transformation. |
org.apache.flink.api.java.functions.KeySelector<IN,?> |
getStateKeySelector()
Returns the
KeySelector that must be used for partitioning keyed state in this
Operation. |
org.apache.flink.api.common.typeinfo.TypeInformation<?> |
getStateKeyType() |
List<org.apache.flink.api.dag.Transformation<?>> |
getTransitivePredecessors() |
void |
setChainingStrategy(ChainingStrategy strategy)
Sets the chaining strategy of this
Transformation. |
void |
setStateKeySelector(org.apache.flink.api.java.functions.KeySelector<IN,?> stateKeySelector)
Sets the
KeySelector that must be used for partitioning keyed state of this
operation. |
void |
setStateKeyType(org.apache.flink.api.common.typeinfo.TypeInformation<?> stateKeyType) |
declareManagedMemoryUseCaseAtOperatorScope, declareManagedMemoryUseCaseAtSlotScope, equals, getBufferTimeout, getCoLocationGroupKey, getId, getManagedMemoryOperatorScopeUseCaseWeights, getManagedMemorySlotScopeUseCases, getMaxParallelism, getMinResources, getName, getNewNodeId, getOutputType, getParallelism, getPreferredResources, getSlotSharingGroup, getUid, getUserProvidedNodeHash, hashCode, setBufferTimeout, setCoLocationGroupKey, setMaxParallelism, setName, setOutputType, setParallelism, setResources, setSlotSharingGroup, setUid, setUidHash, toString, updateManagedMemoryStateBackendUseCasepublic OneInputTransformation(org.apache.flink.api.dag.Transformation<IN> input, String name, OneInputStreamOperator<IN,OUT> operator, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outputType, int parallelism)
OneInputTransformation from the given input and operator.input - The input Transformationname - The name of the Transformation, this will be shown in Visualizations and
the Logoperator - The TwoInputStreamOperatoroutputType - The type of the elements produced by this OneInputTransformationparallelism - The parallelism of this OneInputTransformationpublic OneInputTransformation(org.apache.flink.api.dag.Transformation<IN> input, String name, StreamOperatorFactory<OUT> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outputType, int parallelism)
public org.apache.flink.api.common.typeinfo.TypeInformation<IN> getInputType()
TypeInformation for the elements of the input.@VisibleForTesting public OneInputStreamOperator<IN,OUT> getOperator()
public StreamOperatorFactory<OUT> getOperatorFactory()
StreamOperatorFactory of this Transformation.public void setStateKeySelector(org.apache.flink.api.java.functions.KeySelector<IN,?> stateKeySelector)
KeySelector that must be used for partitioning keyed state of this
operation.stateKeySelector - The KeySelector to setpublic org.apache.flink.api.java.functions.KeySelector<IN,?> getStateKeySelector()
KeySelector that must be used for partitioning keyed state in this
Operation.public void setStateKeyType(org.apache.flink.api.common.typeinfo.TypeInformation<?> stateKeyType)
public org.apache.flink.api.common.typeinfo.TypeInformation<?> getStateKeyType()
public List<org.apache.flink.api.dag.Transformation<?>> getTransitivePredecessors()
getTransitivePredecessors in class org.apache.flink.api.dag.Transformation<OUT>public List<org.apache.flink.api.dag.Transformation<?>> getInputs()
getInputs in class org.apache.flink.api.dag.Transformation<OUT>public final void setChainingStrategy(ChainingStrategy strategy)
PhysicalTransformationTransformation.setChainingStrategy in class PhysicalTransformation<OUT>Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.