@Internal public abstract class StreamPartitioner<T> extends Object implements org.apache.flink.runtime.io.network.api.writer.ChannelSelector<org.apache.flink.runtime.plugable.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 |
equals(Object o) |
abstract 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.
|
org.apache.flink.runtime.io.network.api.writer.SubtaskStateMapper |
getUpstreamSubtaskStateMapper()
Defines the behavior of this partitioner, when upstream rescaled during recovery of in-flight
data.
|
int |
hashCode() |
boolean |
isBroadcast() |
abstract boolean |
isPointwise() |
void |
setup(int numberOfChannels) |
public void setup(int numberOfChannels)
setup
in interface org.apache.flink.runtime.io.network.api.writer.ChannelSelector<org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<T>>>
public boolean isBroadcast()
isBroadcast
in interface org.apache.flink.runtime.io.network.api.writer.ChannelSelector<org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<T>>>
public abstract StreamPartitioner<T> copy()
public org.apache.flink.runtime.io.network.api.writer.SubtaskStateMapper getUpstreamSubtaskStateMapper()
public abstract org.apache.flink.runtime.io.network.api.writer.SubtaskStateMapper getDownstreamSubtaskStateMapper()
public abstract boolean isPointwise()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.