Class OneInputTransformation<IN,OUT>
java.lang.Object
org.apache.flink.api.dag.Transformation<T>
org.apache.flink.streaming.api.transformations.PhysicalTransformation<OUT>
org.apache.flink.streaming.api.transformations.OneInputTransformation<IN,OUT>
- Type Parameters:
IN- The type of the elements in the inputTransformationOUT- The type of the elements that result from thisOneInputTransformation
This Transformation represents the application of a
OneInputStreamOperator to one input Transformation.-
Field Summary
Fields inherited from class org.apache.flink.api.dag.Transformation
bufferTimeout, description, id, name, outputType, typeUsed, UPPER_BOUND_MAX_PARALLELISM -
Constructor Summary
ConstructorsConstructorDescriptionOneInputTransformation(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 newOneInputTransformationfrom the given input and operator.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, boolean parallelismConfigured) 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) 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, boolean parallelismConfigured) Creates a newLegacySinkTransformationfrom the given inputTransformation. -
Method Summary
Modifier and TypeMethodDescriptionvoidList<org.apache.flink.api.dag.Transformation<?>>org.apache.flink.api.common.typeinfo.TypeInformation<IN>Returns theTypeInformationfor the elements of the input.Returns theStreamOperatorFactoryof this Transformation.org.apache.flink.api.java.functions.KeySelector<IN,?> Returns theKeySelectorthat must be used for partitioning keyed state in this Operation.org.apache.flink.api.common.typeinfo.TypeInformation<?>protected List<org.apache.flink.api.dag.Transformation<?>>booleanbooleanfinal voidsetChainingStrategy(ChainingStrategy strategy) Sets the chaining strategy of thisTransformation.voidsetStateKeySelector(org.apache.flink.api.java.functions.KeySelector<IN, ?> stateKeySelector) Sets theKeySelectorthat must be used for partitioning keyed state of this operation.voidsetStateKeyType(org.apache.flink.api.common.typeinfo.TypeInformation<?> stateKeyType) Methods inherited from class org.apache.flink.streaming.api.transformations.PhysicalTransformation
isSupportsConcurrentExecutionAttempts, setSupportsConcurrentExecutionAttemptsMethods inherited from class org.apache.flink.api.dag.Transformation
declareManagedMemoryUseCaseAtOperatorScope, declareManagedMemoryUseCaseAtSlotScope, equals, getAttribute, getBufferTimeout, getCoLocationGroupKey, getDescription, getId, getManagedMemoryOperatorScopeUseCaseWeights, getManagedMemorySlotScopeUseCases, getMaxParallelism, getMinResources, getName, getNewNodeId, getOutputType, getParallelism, getPreferredResources, getSlotSharingGroup, getTransitivePredecessors, getUid, getUserProvidedNodeHash, hashCode, isParallelismConfigured, setAttribute, setBufferTimeout, setCoLocationGroupKey, setDescription, setMaxParallelism, setName, setOutputType, setParallelism, setParallelism, setResources, setSlotSharingGroup, setSlotSharingGroup, setUid, setUidHash, toString, updateManagedMemoryStateBackendUseCase
-
Constructor Details
-
OneInputTransformation
public 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 newOneInputTransformationfrom the given input and operator.- Parameters:
input- The inputTransformationname- The name of theTransformation, this will be shown in Visualizations and the Logoperator- TheTwoInputStreamOperatoroutputType- The type of the elements produced by thisOneInputTransformationparallelism- The parallelism of thisOneInputTransformation
-
OneInputTransformation
-
OneInputTransformation
public 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) -
OneInputTransformation
public 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, boolean parallelismConfigured) Creates a newLegacySinkTransformationfrom the given inputTransformation.- Parameters:
input- The inputTransformationname- The name of theTransformation, this will be shown in Visualizations and the LogoperatorFactory- TheTwoInputStreamOperatorfactoryoutputType- The type of the elements produced by thisOneInputTransformationparallelism- The parallelism of thisOneInputTransformationparallelismConfigured- If true, the parallelism of the transformation is explicitly set and should be respected. Otherwise the parallelism can be changed at runtime.
-
-
Method Details
-
getInputType
Returns theTypeInformationfor the elements of the input. -
getOperator
-
getOperatorFactory
Returns theStreamOperatorFactoryof this Transformation. -
setStateKeySelector
public void setStateKeySelector(org.apache.flink.api.java.functions.KeySelector<IN, ?> stateKeySelector) Sets theKeySelectorthat must be used for partitioning keyed state of this operation.- Parameters:
stateKeySelector- TheKeySelectorto set
-
getStateKeySelector
Returns theKeySelectorthat must be used for partitioning keyed state in this Operation. -
setStateKeyType
public void setStateKeyType(org.apache.flink.api.common.typeinfo.TypeInformation<?> stateKeyType) -
getStateKeyType
public org.apache.flink.api.common.typeinfo.TypeInformation<?> getStateKeyType() -
getTransitivePredecessorsInternal
- Specified by:
getTransitivePredecessorsInternalin classorg.apache.flink.api.dag.Transformation<OUT>
-
getInputs
- Specified by:
getInputsin classorg.apache.flink.api.dag.Transformation<OUT>
-
setChainingStrategy
Description copied from class:PhysicalTransformationSets the chaining strategy of thisTransformation.- Specified by:
setChainingStrategyin classPhysicalTransformation<OUT>
-
isOutputOnlyAfterEndOfStream
public boolean isOutputOnlyAfterEndOfStream() -
isInternalSorterSupported
public boolean isInternalSorterSupported() -
enableAsyncState
public void enableAsyncState()- Overrides:
enableAsyncStatein classorg.apache.flink.api.dag.Transformation<OUT>
-