T - the type of record which is sent through the attached output gatepublic interface ChannelSelector<T extends IOReadableWritable>
OutputGate. When a record is sent through the output
gate, the channel selector object is called to determine to which OutputChannel objects the record
shall be passed on.| Modifier and Type | Method and Description |
|---|---|
int[] |
selectChannels(T record,
int numberOfOutputChannels)
Called to determine to which attached
OutputChannel objects the given record shall be forwarded. |
int[] selectChannels(T record, int numberOfOutputChannels)
OutputChannel objects the given record shall be forwarded.record - the record to the determine the output channels fornumberOfOutputChannels - the total number of output channels which are attached to respective output gateCopyright © 2015 The Apache Software Foundation. All rights reserved.