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 forShuffleMasterto 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 PartitionDescriptorfrom(IntermediateResultPartition partition)intgetNumberOfSubpartitions()IntermediateResultPartitionIDgetPartitionId()ResultPartitionTypegetPartitionType()IntermediateDataSetIDgetResultId()intgetTotalNumberOfPartitions()booleanisAllToAllDistribution()booleanisBroadcast()booleanisNumberOfPartitionConsumerUndefined()StringtoString()
-
-
-
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)
-
-