T
- The type of the elements that this source produces@Internal public class SourceTransformation<T> extends StreamTransformation<T>
StreamTransformation
of any topology.bufferTimeout, id, idCounter, name, outputType, typeUsed
Constructor and Description |
---|
SourceTransformation(String name,
StreamSource<T,?> operator,
TypeInformation<T> outputType,
int parallelism)
Creates a new
SourceTransformation from the given operator. |
Modifier and Type | Method and Description |
---|---|
StreamSource<T,?> |
getOperator()
Returns the
StreamSource , the operator of this SourceTransformation . |
Collection<StreamTransformation<?>> |
getTransitivePredecessors()
Returns all transitive predecessor
StreamTransformation s of this StreamTransformation . |
void |
setChainingStrategy(ChainingStrategy strategy)
Sets the chaining strategy of this
StreamTransformation . |
equals, getBufferTimeout, getCoLocationGroupKey, getId, getMaxParallelism, getMinResources, getName, getNewNodeId, getOutputType, getParallelism, getPreferredResources, getSlotSharingGroup, getUid, getUserProvidedNodeHash, hashCode, setBufferTimeout, setCoLocationGroupKey, setMaxParallelism, setName, setOutputType, setParallelism, setResources, setSlotSharingGroup, setUid, setUidHash, toString
public SourceTransformation(String name, StreamSource<T,?> operator, 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 SourceTransformation
parallelism
- The parallelism of this SourceTransformation
public StreamSource<T,?> getOperator()
StreamSource
, the operator of this SourceTransformation
.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<T>
public final void setChainingStrategy(ChainingStrategy strategy)
StreamTransformation
StreamTransformation
.setChainingStrategy
in class StreamTransformation<T>
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.