T - Type of the elements in the Stream being broadcast@Internal public class BroadcastPartitioner<T> extends StreamPartitioner<T>
numberOfChannels| 构造器和说明 |
|---|
BroadcastPartitioner() |
| 限定符和类型 | 方法和说明 |
|---|---|
StreamPartitioner<T> |
copy() |
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.
|
boolean |
isBroadcast() |
boolean |
isPointwise() |
int |
selectChannel(org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<T>> record)
Note: Broadcast mode could be handled directly for all the output channels in record writer,
so it is no need to select channels via this method.
|
String |
toString() |
equals, hashCode, setuppublic int selectChannel(org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<T>> record)
public org.apache.flink.runtime.io.network.api.writer.SubtaskStateMapper getUpstreamSubtaskStateMapper()
StreamPartitionerpublic org.apache.flink.runtime.io.network.api.writer.SubtaskStateMapper getDownstreamSubtaskStateMapper()
StreamPartitionerpublic boolean isBroadcast()
isBroadcast 在接口中 org.apache.flink.runtime.io.network.api.writer.ChannelSelector<org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<T>>>isBroadcast 在类中 StreamPartitioner<T>public StreamPartitioner<T> copy()
copy 在类中 StreamPartitioner<T>public boolean isPointwise()
isPointwise 在类中 StreamPartitioner<T>Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.