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() |
boolean |
equals(Object o) |
org.apache.flink.runtime.io.network.api.writer.SubtaskStateMapper |
getDownstreamSubtaskStateMapper()
Defines the behavior of this partitioner, when downstream rescaled during recovery of
in-flight data.
|
int |
getMaxParallelism() |
int |
hashCode() |
boolean |
isPointwise() |
int |
selectChannel(org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<T>> record) |
String |
toString() |
disableUnalignedCheckpoints, getUpstreamSubtaskStateMapper, isBroadcast, isSupportsUnalignedCheckpoint, 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 org.apache.flink.runtime.io.network.api.writer.SubtaskStateMapper getDownstreamSubtaskStateMapper()
StreamPartitionergetDownstreamSubtaskStateMapper in class StreamPartitioner<T>public StreamPartitioner<T> copy()
copy in class StreamPartitioner<T>public boolean isPointwise()
isPointwise 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.public boolean equals(Object o)
equals in class StreamPartitioner<T>public int hashCode()
hashCode in class StreamPartitioner<T>Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.