T - the type of record which is sent through the attached output gatepublic interface ChannelSelector<T extends org.apache.flink.core.io.IOReadableWritable>
ChannelSelector determines to which logical channels a record
should be written to.| Modifier and Type | Method and Description |
|---|---|
int[] |
selectChannels(T record,
int numChannels)
Returns the logical channel indexes, to which the given record should be
written.
|
int[] selectChannels(T record, int numChannels)
record - the record to the determine the output channels fornumChannels - the total number of output channels which are attached to respective output gateCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.