T
- Type of the elements in the Stream being partitioned@Internal public class GlobalPartitioner<T> extends StreamPartitioner<T>
numberOfChannels
Constructor and Description |
---|
GlobalPartitioner() |
Modifier and Type | Method and Description |
---|---|
StreamPartitioner<T> |
copy() |
int |
selectChannel(SerializationDelegate<StreamRecord<T>> record)
Returns the logical channel index, to which the given record should be written.
|
String |
toString() |
isBroadcast, setup
public int selectChannel(SerializationDelegate<StreamRecord<T>> record)
ChannelSelector
UnsupportedOperationException
).record
- the record to determine the output channels for.public StreamPartitioner<T> copy()
copy
in class StreamPartitioner<T>
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.