T - The type of the elements that this source produces@Internal public class SourceTransformation<T> extends PhysicalTransformation<T>
Transformation of any topology.| 构造器和说明 |
|---|
SourceTransformation(String name,
StreamOperatorFactory<T> operatorFactory,
org.apache.flink.api.common.typeinfo.TypeInformation<T> outputType,
int parallelism) |
SourceTransformation(String name,
StreamSource<T,?> operator,
org.apache.flink.api.common.typeinfo.TypeInformation<T> outputType,
int parallelism)
Creates a new
SourceTransformation from the given operator. |
| 限定符和类型 | 方法和说明 |
|---|---|
StreamSource<T,?> |
getOperator() |
StreamOperatorFactory<T> |
getOperatorFactory()
Returns the
StreamOperatorFactory of this SourceTransformation. |
Collection<org.apache.flink.api.dag.Transformation<?>> |
getTransitivePredecessors() |
void |
setChainingStrategy(ChainingStrategy strategy)
Sets the chaining strategy of this
Transformation. |
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 SourceTransformation(String name, StreamSource<T,?> operator, org.apache.flink.api.common.typeinfo.TypeInformation<T> outputType, int parallelism)
SourceTransformation from the given operator.name - The name of the SourceTransformation, this will be shown in Visualizations and the Logoperator - The StreamSource that is the operator of this TransformationoutputType - The type of the elements produced by this SourceTransformationparallelism - The parallelism of this SourceTransformationpublic SourceTransformation(String name, StreamOperatorFactory<T> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<T> outputType, int parallelism)
@VisibleForTesting public StreamSource<T,?> getOperator()
public StreamOperatorFactory<T> getOperatorFactory()
StreamOperatorFactory of this SourceTransformation.public Collection<org.apache.flink.api.dag.Transformation<?>> getTransitivePredecessors()
getTransitivePredecessors 在类中 org.apache.flink.api.dag.Transformation<T>public final void setChainingStrategy(ChainingStrategy strategy)
PhysicalTransformationTransformation.setChainingStrategy 在类中 PhysicalTransformation<T>Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.