IN1 - The type of the elements in the first input TransformationIN2 - The type of the elements in the second input TransformationOUT - The type of the elements that result from this TwoInputTransformation@Internal public class TwoInputTransformation<IN1,IN2,OUT> extends PhysicalTransformation<OUT>
TwoInputStreamOperator to two input Transformations.
The result is again only one stream.| Constructor and Description |
|---|
TwoInputTransformation(org.apache.flink.api.dag.Transformation<IN1> input1,
org.apache.flink.api.dag.Transformation<IN2> input2,
String name,
StreamOperatorFactory<OUT> operatorFactory,
org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outputType,
int parallelism) |
TwoInputTransformation(org.apache.flink.api.dag.Transformation<IN1> input1,
org.apache.flink.api.dag.Transformation<IN2> input2,
String name,
TwoInputStreamOperator<IN1,IN2,OUT> operator,
org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outputType,
int parallelism)
Creates a new
TwoInputTransformation from the given inputs and operator. |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.dag.Transformation<IN1> |
getInput1()
Returns the first input
Transformation of this TwoInputTransformation. |
org.apache.flink.api.dag.Transformation<IN2> |
getInput2()
Returns the second input
Transformation of this TwoInputTransformation. |
org.apache.flink.api.common.typeinfo.TypeInformation<IN1> |
getInputType1()
Returns the
TypeInformation for the elements from the first input. |
org.apache.flink.api.common.typeinfo.TypeInformation<IN2> |
getInputType2()
Returns the
TypeInformation for the elements from the second input. |
TwoInputStreamOperator<IN1,IN2,OUT> |
getOperator() |
StreamOperatorFactory<OUT> |
getOperatorFactory()
Returns the
StreamOperatorFactory of this Transformation. |
org.apache.flink.api.java.functions.KeySelector<IN1,?> |
getStateKeySelector1()
Returns the
KeySelector that must be used for partitioning keyed state in this
Operation for the first input. |
org.apache.flink.api.java.functions.KeySelector<IN2,?> |
getStateKeySelector2()
Returns the
KeySelector that must be used for partitioning keyed state in this
Operation for the second input. |
org.apache.flink.api.common.typeinfo.TypeInformation<?> |
getStateKeyType() |
Collection<org.apache.flink.api.dag.Transformation<?>> |
getTransitivePredecessors() |
void |
setChainingStrategy(ChainingStrategy strategy)
Sets the chaining strategy of this
Transformation. |
void |
setStateKeySelectors(org.apache.flink.api.java.functions.KeySelector<IN1,?> stateKeySelector1,
org.apache.flink.api.java.functions.KeySelector<IN2,?> stateKeySelector2)
Sets the
KeySelectors that must be used for partitioning keyed state of
this transformation. |
void |
setStateKeyType(org.apache.flink.api.common.typeinfo.TypeInformation<?> stateKeyType) |
equals, getBufferTimeout, getCoLocationGroupKey, getId, getManagedMemoryWeight, getMaxParallelism, getMinResources, getName, getNewNodeId, getOutputType, getParallelism, getPreferredResources, getSlotSharingGroup, getUid, getUserProvidedNodeHash, hashCode, setBufferTimeout, setCoLocationGroupKey, setManagedMemoryWeight, setMaxParallelism, setName, setOutputType, setParallelism, setResources, setSlotSharingGroup, setUid, setUidHash, toStringpublic TwoInputTransformation(org.apache.flink.api.dag.Transformation<IN1> input1, org.apache.flink.api.dag.Transformation<IN2> input2, String name, TwoInputStreamOperator<IN1,IN2,OUT> operator, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outputType, int parallelism)
TwoInputTransformation from the given inputs and operator.input1 - The first input Transformationinput2 - The second 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 Transformationparallelism - The parallelism of this Transformationpublic TwoInputTransformation(org.apache.flink.api.dag.Transformation<IN1> input1, org.apache.flink.api.dag.Transformation<IN2> input2, String name, StreamOperatorFactory<OUT> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outputType, int parallelism)
public org.apache.flink.api.dag.Transformation<IN1> getInput1()
Transformation of this TwoInputTransformation.public org.apache.flink.api.dag.Transformation<IN2> getInput2()
Transformation of this TwoInputTransformation.public org.apache.flink.api.common.typeinfo.TypeInformation<IN1> getInputType1()
TypeInformation for the elements from the first input.public org.apache.flink.api.common.typeinfo.TypeInformation<IN2> getInputType2()
TypeInformation for the elements from the second input.@VisibleForTesting public TwoInputStreamOperator<IN1,IN2,OUT> getOperator()
public StreamOperatorFactory<OUT> getOperatorFactory()
StreamOperatorFactory of this Transformation.public void setStateKeySelectors(org.apache.flink.api.java.functions.KeySelector<IN1,?> stateKeySelector1, org.apache.flink.api.java.functions.KeySelector<IN2,?> stateKeySelector2)
KeySelectors that must be used for partitioning keyed state of
this transformation.stateKeySelector1 - The KeySelector to set for the first inputstateKeySelector2 - The KeySelector to set for the first inputpublic org.apache.flink.api.java.functions.KeySelector<IN1,?> getStateKeySelector1()
KeySelector that must be used for partitioning keyed state in this
Operation for the first input.public org.apache.flink.api.java.functions.KeySelector<IN2,?> getStateKeySelector2()
KeySelector that must be used for partitioning keyed state in this
Operation for the second input.public void setStateKeyType(org.apache.flink.api.common.typeinfo.TypeInformation<?> stateKeyType)
public org.apache.flink.api.common.typeinfo.TypeInformation<?> getStateKeyType()
public Collection<org.apache.flink.api.dag.Transformation<?>> getTransitivePredecessors()
getTransitivePredecessors in class org.apache.flink.api.dag.Transformation<OUT>public final void setChainingStrategy(ChainingStrategy strategy)
PhysicalTransformationTransformation.setChainingStrategy in class PhysicalTransformation<OUT>Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.