IN1
- The type of the elements in the first input StreamTransformation
IN2
- The type of the elements in the second input StreamTransformation
OUT
- The type of the elements that result from this TwoInputTransformation
@Internal public class TwoInputTransformation<IN1,IN2,OUT> extends StreamTransformation<OUT>
TwoInputStreamOperator
to two input
StreamTransformations
. The result is again only one stream.bufferTimeout, id, idCounter, name, outputType, typeUsed
Constructor and Description |
---|
TwoInputTransformation(StreamTransformation<IN1> input1,
StreamTransformation<IN2> input2,
String name,
TwoInputStreamOperator<IN1,IN2,OUT> operator,
TypeInformation<OUT> outputType,
int parallelism)
Creates a new
TwoInputTransformation from the given inputs and operator. |
Modifier and Type | Method and Description |
---|---|
StreamTransformation<IN1> |
getInput1()
Returns the first input
StreamTransformation of this TwoInputTransformation . |
StreamTransformation<IN2> |
getInput2()
Returns the first input
StreamTransformation of this TwoInputTransformation . |
TypeInformation<IN1> |
getInputType1()
Returns the
TypeInformation for the elements from the first input. |
TypeInformation<IN2> |
getInputType2()
Returns the
TypeInformation for the elements from the first input. |
TwoInputStreamOperator<IN1,IN2,OUT> |
getOperator()
Returns the
TwoInputStreamOperator of this Transformation. |
KeySelector<IN1,?> |
getStateKeySelector1()
Returns the
KeySelector that must be used for partitioning keyed state in this
Operation for the first input. |
KeySelector<IN2,?> |
getStateKeySelector2()
Returns the
KeySelector that must be used for partitioning keyed state in this
Operation for the second input. |
TypeInformation<?> |
getStateKeyType() |
Collection<StreamTransformation<?>> |
getTransitivePredecessors()
Returns all transitive predecessor
StreamTransformation s of this StreamTransformation . |
void |
setChainingStrategy(ChainingStrategy strategy)
Sets the chaining strategy of this
StreamTransformation . |
void |
setStateKeySelectors(KeySelector<IN1,?> stateKeySelector1,
KeySelector<IN2,?> stateKeySelector2)
Sets the
KeySelectors that must be used for partitioning keyed state of
this transformation. |
void |
setStateKeyType(TypeInformation<?> stateKeyType) |
equals, getBufferTimeout, getId, getName, getNewNodeId, getOutputType, getParallelism, getSlotSharingGroup, getUid, hashCode, setBufferTimeout, setName, setOutputType, setParallelism, setSlotSharingGroup, setUid, toString
public TwoInputTransformation(StreamTransformation<IN1> input1, StreamTransformation<IN2> input2, String name, TwoInputStreamOperator<IN1,IN2,OUT> operator, TypeInformation<OUT> outputType, int parallelism)
TwoInputTransformation
from the given inputs and operator.input1
- The first input StreamTransformation
input2
- The second input StreamTransformation
name
- The name of the StreamTransformation
, this will be shown in Visualizations and the Logoperator
- The TwoInputStreamOperator
outputType
- The type of the elements produced by this Transformationparallelism
- The parallelism of this Transformationpublic StreamTransformation<IN1> getInput1()
StreamTransformation
of this TwoInputTransformation
.public StreamTransformation<IN2> getInput2()
StreamTransformation
of this TwoInputTransformation
.public TypeInformation<IN1> getInputType1()
TypeInformation
for the elements from the first input.public TypeInformation<IN2> getInputType2()
TypeInformation
for the elements from the first input.public TwoInputStreamOperator<IN1,IN2,OUT> getOperator()
TwoInputStreamOperator
of this Transformation.public void setStateKeySelectors(KeySelector<IN1,?> stateKeySelector1, 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 KeySelector<IN1,?> getStateKeySelector1()
KeySelector
that must be used for partitioning keyed state in this
Operation for the first input.public KeySelector<IN2,?> getStateKeySelector2()
KeySelector
that must be used for partitioning keyed state in this
Operation for the second input.public void setStateKeyType(TypeInformation<?> stateKeyType)
public TypeInformation<?> getStateKeyType()
public Collection<StreamTransformation<?>> getTransitivePredecessors()
StreamTransformation
StreamTransformation
s of this StreamTransformation
. This
is, for example, used when determining whether a feedback edge of an iteration
actually has the iteration head as a predecessor.getTransitivePredecessors
in class StreamTransformation<OUT>
public final void setChainingStrategy(ChainingStrategy strategy)
StreamTransformation
StreamTransformation
.setChainingStrategy
in class StreamTransformation<OUT>
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.