Class AbstractDataStream<T>
- java.lang.Object
-
- org.apache.flink.datastream.impl.stream.AbstractDataStream<T>
-
- All Implemented Interfaces:
org.apache.flink.datastream.api.stream.DataStream
- Direct Known Subclasses:
BroadcastStreamImpl,GlobalStreamImpl,KeyedPartitionStreamImpl,NonKeyedPartitionStreamImpl
public abstract class AbstractDataStream<T> extends Object implements org.apache.flink.datastream.api.stream.DataStream
Base class for all streams.Note: This is only used for internal implementation. It must not leak to user face api.
-
-
Field Summary
Fields Modifier and Type Field Description protected ExecutionEnvironmentImplenvironmentprotected Map<org.apache.flink.util.OutputTag<?>,org.apache.flink.api.common.typeinfo.TypeInformation<?>>requestedSideOutputsWe keep track of the side outputs that were already requested and their types.protected org.apache.flink.api.dag.Transformation<T>transformation
-
Constructor Summary
Constructors Constructor Description AbstractDataStream(ExecutionEnvironmentImpl environment, org.apache.flink.api.dag.Transformation<T> transformation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionEnvironmentImplgetEnvironment()<X> org.apache.flink.api.dag.Transformation<X>getSideOutputTransform(org.apache.flink.util.OutputTag<X> outputTag)org.apache.flink.api.dag.Transformation<T>getTransformation()This is only used for internal implementation.org.apache.flink.api.common.typeinfo.TypeInformation<T>getType()
-
-
-
Field Detail
-
environment
protected final ExecutionEnvironmentImpl environment
-
transformation
protected final org.apache.flink.api.dag.Transformation<T> transformation
-
requestedSideOutputs
protected final Map<org.apache.flink.util.OutputTag<?>,org.apache.flink.api.common.typeinfo.TypeInformation<?>> requestedSideOutputs
We keep track of the side outputs that were already requested and their types. With this, we can catch the case when a side output with a matching id is requested for a different type because this would lead to problems at runtime.
-
-
Constructor Detail
-
AbstractDataStream
public AbstractDataStream(ExecutionEnvironmentImpl environment, org.apache.flink.api.dag.Transformation<T> transformation)
-
-
Method Detail
-
getType
public org.apache.flink.api.common.typeinfo.TypeInformation<T> getType()
-
getTransformation
public org.apache.flink.api.dag.Transformation<T> getTransformation()
This is only used for internal implementation. It must not leak to user face api.
-
getEnvironment
public ExecutionEnvironmentImpl getEnvironment()
-
getSideOutputTransform
public <X> org.apache.flink.api.dag.Transformation<X> getSideOutputTransform(org.apache.flink.util.OutputTag<X> outputTag)
-
-