T
- The type of input/output elements.@PublicEvolving public class BroadcastStream<T> extends Object
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.
Modifier | Constructor and Description |
---|---|
protected |
BroadcastStream(StreamExecutionEnvironment env,
DataStream<T> input,
MapStateDescriptor<?,?>... broadcastStateDescriptors) |
Modifier and Type | Method and Description |
---|---|
<F> F |
clean(F f) |
List<MapStateDescriptor<?,?>> |
getBroadcastStateDescriptor() |
StreamExecutionEnvironment |
getEnvironment() |
StreamTransformation<T> |
getTransformation() |
TypeInformation<T> |
getType() |
protected BroadcastStream(StreamExecutionEnvironment env, DataStream<T> input, MapStateDescriptor<?,?>... broadcastStateDescriptors)
public TypeInformation<T> getType()
public <F> F clean(F f)
public StreamTransformation<T> getTransformation()
public List<MapStateDescriptor<?,?>> getBroadcastStateDescriptor()
public StreamExecutionEnvironment getEnvironment()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.