Package org.apache.flink.runtime.shuffle
Class PartitionDescriptor
- java.lang.Object
-
- org.apache.flink.runtime.shuffle.PartitionDescriptor
-
- All Implemented Interfaces:
Serializable
public class PartitionDescriptor extends Object implements Serializable
Partition descriptor forShuffleMaster
to obtainShuffleDescriptor
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PartitionDescriptor(IntermediateDataSetID resultId, int totalNumberOfPartitions, IntermediateResultPartitionID partitionId, ResultPartitionType partitionType, int numberOfSubpartitions, int connectionIndex, boolean isBroadcast, boolean isAllToAllDistribution, boolean isNumberOfPartitionConsumerUndefined)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PartitionDescriptor
from(IntermediateResultPartition partition)
int
getNumberOfSubpartitions()
IntermediateResultPartitionID
getPartitionId()
ResultPartitionType
getPartitionType()
IntermediateDataSetID
getResultId()
int
getTotalNumberOfPartitions()
boolean
isAllToAllDistribution()
boolean
isBroadcast()
boolean
isNumberOfPartitionConsumerUndefined()
String
toString()
-
-
-
Constructor Detail
-
PartitionDescriptor
@VisibleForTesting public PartitionDescriptor(IntermediateDataSetID resultId, int totalNumberOfPartitions, IntermediateResultPartitionID partitionId, ResultPartitionType partitionType, int numberOfSubpartitions, int connectionIndex, boolean isBroadcast, boolean isAllToAllDistribution, boolean isNumberOfPartitionConsumerUndefined)
-
-
Method Detail
-
getResultId
public IntermediateDataSetID getResultId()
-
getTotalNumberOfPartitions
public int getTotalNumberOfPartitions()
-
getPartitionId
public IntermediateResultPartitionID getPartitionId()
-
getPartitionType
public ResultPartitionType getPartitionType()
-
getNumberOfSubpartitions
public int getNumberOfSubpartitions()
-
isNumberOfPartitionConsumerUndefined
public boolean isNumberOfPartitionConsumerUndefined()
-
isBroadcast
public boolean isBroadcast()
-
isAllToAllDistribution
public boolean isAllToAllDistribution()
-
from
public static PartitionDescriptor from(IntermediateResultPartition partition)
-
-