Class LegacySourceTransformation<T>
- java.lang.Object
-
- org.apache.flink.api.dag.Transformation<T>
-
- org.apache.flink.streaming.api.transformations.PhysicalTransformation<T>
-
- org.apache.flink.streaming.api.transformations.TransformationWithLineage<T>
-
- org.apache.flink.streaming.api.transformations.LegacySourceTransformation<T>
-
- Type Parameters:
T- The type of the elements that this source produces
- All Implemented Interfaces:
WithBoundedness
@Internal public class LegacySourceTransformation<T> extends TransformationWithLineage<T> implements WithBoundedness
This represents a Source. This does not actually transform anything since it has no inputs but it is the rootTransformationof any topology.
-
-
Constructor Summary
Constructors Constructor Description LegacySourceTransformation(String name, StreamSource<T,?> operator, org.apache.flink.api.common.typeinfo.TypeInformation<T> outputType, int parallelism, org.apache.flink.api.connector.source.Boundedness boundedness, boolean parallelismConfigured)Creates a newLegacySourceTransformationfrom the given operator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.api.connector.source.BoundednessgetBoundedness()Returns theBoundednessof thisTransformation.List<org.apache.flink.api.dag.Transformation<?>>getInputs()StreamSource<T,?>getOperator()StreamOperatorFactory<T>getOperatorFactory()Returns theStreamOperatorFactoryof thisLegacySourceTransformation.protected List<org.apache.flink.api.dag.Transformation<?>>getTransitivePredecessorsInternal()voidsetBoundedness(org.apache.flink.api.connector.source.Boundedness boundedness)Mutable for legacy sources in the Table API.voidsetChainingStrategy(ChainingStrategy strategy)Sets the chaining strategy of thisTransformation.-
Methods inherited from class org.apache.flink.streaming.api.transformations.TransformationWithLineage
getLineageVertex, setLineageVertex
-
Methods inherited from class org.apache.flink.streaming.api.transformations.PhysicalTransformation
isSupportsConcurrentExecutionAttempts, setSupportsConcurrentExecutionAttempts
-
Methods 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 Detail
-
LegacySourceTransformation
public LegacySourceTransformation(String name, StreamSource<T,?> operator, org.apache.flink.api.common.typeinfo.TypeInformation<T> outputType, int parallelism, org.apache.flink.api.connector.source.Boundedness boundedness, boolean parallelismConfigured)
Creates a newLegacySourceTransformationfrom the given operator.- Parameters:
name- The name of theLegacySourceTransformation, this will be shown in Visualizations and the Logoperator- TheStreamSourcethat is the operator of this TransformationoutputType- The type of the elements produced by thisLegacySourceTransformationparallelism- The parallelism of thisLegacySourceTransformationparallelismConfigured- If true, the parallelism of the transformation is explicitly set and should be respected. Otherwise the parallelism can be changed at runtime.
-
-
Method Detail
-
setBoundedness
public void setBoundedness(org.apache.flink.api.connector.source.Boundedness boundedness)
Mutable for legacy sources in the Table API.
-
getBoundedness
public org.apache.flink.api.connector.source.Boundedness getBoundedness()
Description copied from interface:WithBoundednessReturns theBoundednessof thisTransformation.- Specified by:
getBoundednessin interfaceWithBoundedness
-
getOperator
@VisibleForTesting public StreamSource<T,?> getOperator()
-
getOperatorFactory
public StreamOperatorFactory<T> getOperatorFactory()
Returns theStreamOperatorFactoryof thisLegacySourceTransformation.
-
getTransitivePredecessorsInternal
protected List<org.apache.flink.api.dag.Transformation<?>> getTransitivePredecessorsInternal()
- Specified by:
getTransitivePredecessorsInternalin classorg.apache.flink.api.dag.Transformation<T>
-
getInputs
public List<org.apache.flink.api.dag.Transformation<?>> getInputs()
- Specified by:
getInputsin classorg.apache.flink.api.dag.Transformation<T>
-
setChainingStrategy
public final void setChainingStrategy(ChainingStrategy strategy)
Description copied from class:PhysicalTransformationSets the chaining strategy of thisTransformation.- Specified by:
setChainingStrategyin classPhysicalTransformation<T>
-
-