T - Type of the elements in the Stream being partitioned@Internal public class KeyGroupStreamPartitioner<T,K> extends StreamPartitioner<T> implements ConfigurableStreamPartitioner
numberOfChannels| Constructor and Description |
|---|
KeyGroupStreamPartitioner(org.apache.flink.api.java.functions.KeySelector<T,K> keySelector,
int maxParallelism) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(int maxParallelism)
Configure the
StreamPartitioner with the maximum parallelism of the down stream
operator. |
StreamPartitioner<T> |
copy() |
int |
getMaxParallelism() |
int |
selectChannel(org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<T>> record) |
String |
toString() |
isBroadcast, setuppublic int getMaxParallelism()
public int selectChannel(org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<T>> record)
selectChannel in interface org.apache.flink.runtime.io.network.api.writer.ChannelSelector<org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<T>>>public StreamPartitioner<T> copy()
copy in class StreamPartitioner<T>public void configure(int maxParallelism)
ConfigurableStreamPartitionerStreamPartitioner with the maximum parallelism of the down stream
operator.configure in interface ConfigurableStreamPartitionermaxParallelism - Maximum parallelism of the down stream operator.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.