T
- Type of the elements in the Stream being broadcast@Internal public class BroadcastPartitioner<T> extends StreamPartitioner<T>
numberOfChannels
Constructor and Description |
---|
BroadcastPartitioner() |
Modifier and Type | Method and Description |
---|---|
StreamPartitioner<T> |
copy() |
boolean |
isBroadcast()
Returns whether the channel selector always selects all the output channels.
|
int |
selectChannel(SerializationDelegate<StreamRecord<T>> record)
Note: Broadcast mode could be handled directly for all the output channels in record writer,
so it is no need to select channels via this method.
|
String |
toString() |
setup
public int selectChannel(SerializationDelegate<StreamRecord<T>> record)
record
- the record to determine the output channels for.public boolean isBroadcast()
ChannelSelector
isBroadcast
in interface ChannelSelector<SerializationDelegate<StreamRecord<T>>>
isBroadcast
in class StreamPartitioner<T>
public StreamPartitioner<T> copy()
copy
in class StreamPartitioner<T>
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.