Package org.apache.flink.runtime.shuffle
Class PartitionDescriptor
java.lang.Object
org.apache.flink.runtime.shuffle.PartitionDescriptor
- All Implemented Interfaces:
Serializable
Partition descriptor for
ShuffleMaster to obtain ShuffleDescriptor.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPartitionDescriptor(IntermediateDataSetID resultId, int totalNumberOfPartitions, IntermediateResultPartitionID partitionId, ResultPartitionType partitionType, int numberOfSubpartitions, int connectionIndex, boolean isBroadcast, boolean isAllToAllDistribution, boolean isNumberOfPartitionConsumerUndefined) -
Method Summary
Modifier and TypeMethodDescriptionstatic PartitionDescriptorfrom(IntermediateResultPartition partition) intintbooleanbooleanbooleantoString()
-
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
-
getTotalNumberOfPartitions
public int getTotalNumberOfPartitions() -
getPartitionId
-
getPartitionType
-
getNumberOfSubpartitions
public int getNumberOfSubpartitions() -
isNumberOfPartitionConsumerUndefined
public boolean isNumberOfPartitionConsumerUndefined() -
isBroadcast
public boolean isBroadcast() -
isAllToAllDistribution
public boolean isAllToAllDistribution() -
toString
-
from
-