@Internal public abstract class StreamPartitioner<T> extends Object implements ChannelSelector<SerializationDelegate<StreamRecord<T>>>, Serializable
ChannelSelector
for use in streaming programs.Modifier and Type | Field and Description |
---|---|
protected int |
numberOfChannels |
Constructor and Description |
---|
StreamPartitioner() |
Modifier and Type | Method and Description |
---|---|
abstract StreamPartitioner<T> |
copy() |
boolean |
isBroadcast()
Returns whether the channel selector always selects all the output channels.
|
void |
setup(int numberOfChannels)
Initializes the channel selector with the number of output channels.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
selectChannel
public void setup(int numberOfChannels)
ChannelSelector
setup
in interface ChannelSelector<SerializationDelegate<StreamRecord<T>>>
numberOfChannels
- the total number of output channels which are attached
to respective output gate.public boolean isBroadcast()
ChannelSelector
isBroadcast
in interface ChannelSelector<SerializationDelegate<StreamRecord<T>>>
public abstract StreamPartitioner<T> copy()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.