Class PartitionDescriptor

java.lang.Object
org.apache.flink.runtime.shuffle.PartitionDescriptor
All Implemented Interfaces:
Serializable

public class PartitionDescriptor extends Object implements Serializable
Partition descriptor for ShuffleMaster to obtain ShuffleDescriptor.
See Also:
  • Constructor Details

    • PartitionDescriptor

      @VisibleForTesting public PartitionDescriptor(IntermediateDataSetID resultId, int totalNumberOfPartitions, IntermediateResultPartitionID partitionId, ResultPartitionType partitionType, int numberOfSubpartitions, int connectionIndex, boolean isBroadcast, boolean isAllToAllDistribution, boolean isNumberOfPartitionConsumerUndefined)
  • Method Details

    • 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()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • from

      public static PartitionDescriptor from(IntermediateResultPartition partition)