T
- The type of the elements that this source produces@Internal public class LegacySourceTransformation<T> extends PhysicalTransformation<T>
Transformation
of any topology.bufferTimeout, DEFAULT_MANAGED_MEMORY_WEIGHT, id, idCounter, name, outputType, typeUsed, UPPER_BOUND_MAX_PARALLELISM
Constructor and Description |
---|
LegacySourceTransformation(String name,
StreamOperatorFactory<T> operatorFactory,
TypeInformation<T> outputType,
int parallelism) |
LegacySourceTransformation(String name,
StreamSource<T,?> operator,
TypeInformation<T> outputType,
int parallelism)
Creates a new
LegacySourceTransformation from the given operator. |
Modifier and Type | Method and Description |
---|---|
StreamSource<T,?> |
getOperator() |
StreamOperatorFactory<T> |
getOperatorFactory()
Returns the
StreamOperatorFactory of this LegacySourceTransformation . |
Collection<Transformation<?>> |
getTransitivePredecessors()
Returns all transitive predecessor
Transformation s of this Transformation . |
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, toString
public LegacySourceTransformation(String name, StreamSource<T,?> operator, TypeInformation<T> outputType, int parallelism)
LegacySourceTransformation
from the given operator.name
- The name of the LegacySourceTransformation
, 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 LegacySourceTransformation
parallelism
- The parallelism of this LegacySourceTransformation
public LegacySourceTransformation(String name, StreamOperatorFactory<T> operatorFactory, TypeInformation<T> outputType, int parallelism)
@VisibleForTesting public StreamSource<T,?> getOperator()
public StreamOperatorFactory<T> getOperatorFactory()
StreamOperatorFactory
of this LegacySourceTransformation
.public Collection<Transformation<?>> getTransitivePredecessors()
Transformation
Transformation
s of this Transformation
.
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 Transformation<T>
public final void setChainingStrategy(ChainingStrategy strategy)
PhysicalTransformation
Transformation
.setChainingStrategy
in class PhysicalTransformation<T>
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.