Class BroadcastStream<T>
java.lang.Object
org.apache.flink.streaming.api.datastream.BroadcastStream<T>
- Type Parameters:
T- The type of input/output elements.
A
BroadcastStream is a stream with broadcast state(s). This can be created by any
stream using the DataStream.broadcast(MapStateDescriptor[]) method and implicitly creates
states where the user can store elements of the created BroadcastStream. (see BroadcastConnectedStream).
Note that no further operation can be applied to these streams. The only available option is
to connect them with a keyed or non-keyed stream, using the DataStream.connect(BroadcastStream) and the DataStream.connect(BroadcastStream)
respectively. Applying these methods will result it a BroadcastConnectedStream for
further processing.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBroadcastStream(StreamExecutionEnvironment env, DataStream<T> input, org.apache.flink.api.common.state.MapStateDescriptor<?, ?>... broadcastStateDescriptors) -
Method Summary
-
Constructor Details
-
BroadcastStream
protected BroadcastStream(StreamExecutionEnvironment env, DataStream<T> input, org.apache.flink.api.common.state.MapStateDescriptor<?, ?>... broadcastStateDescriptors)
-
-
Method Details
-
getType
-
clean
public <F> F clean(F f) -
getTransformation
-
getBroadcastStateDescriptors
public List<org.apache.flink.api.common.state.MapStateDescriptor<?,?>> getBroadcastStateDescriptors() -
getEnvironment
-