T - the type of record which is sent through the attached output gatepublic class RoundRobinChannelSelector<T extends org.apache.flink.core.io.IOReadableWritable> extends Object implements ChannelSelector<T>
ChannelSelector interface. It represents a simple round-robin
strategy, i.e. regardless of the record every attached exactly one output channel is selected at a time.| Constructor and Description |
|---|
RoundRobinChannelSelector()
Constructs a new default channel selector.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
selectChannels(T record,
int numberOfOutputChannels)
Returns the logical channel indexes, to which the given record should be
written.
|
public RoundRobinChannelSelector()
public int[] selectChannels(T record, int numberOfOutputChannels)
ChannelSelectorselectChannels in interface ChannelSelector<T extends org.apache.flink.core.io.IOReadableWritable>record - the record to the determine the output channels fornumberOfOutputChannels - the total number of output channels which are attached to respective output gateCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.