T
- Type of the elements in the Stream being partitioned@Internal public class KeyGroupStreamPartitioner<T,K> extends StreamPartitioner<T> implements ConfigurableStreamPartitioner
numberOfChannels
构造器和说明 |
---|
KeyGroupStreamPartitioner(org.apache.flink.api.java.functions.KeySelector<T,K> keySelector,
int maxParallelism) |
限定符和类型 | 方法和说明 |
---|---|
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, setup
public int getMaxParallelism()
public int selectChannel(org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<T>> record)
selectChannel
在接口中 org.apache.flink.runtime.io.network.api.writer.ChannelSelector<org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<T>>>
public StreamPartitioner<T> copy()
copy
在类中 StreamPartitioner<T>
public void configure(int maxParallelism)
ConfigurableStreamPartitioner
StreamPartitioner
with the maximum parallelism of the down stream
operator.configure
在接口中 ConfigurableStreamPartitioner
maxParallelism
- Maximum parallelism of the down stream operator.Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.