public class ConsumedPartitionGroup extends Object implements Iterable<IntermediateResultPartitionID>
IntermediateResultPartitionIDs.| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
areAllPartitionsFinished() |
static ConsumedPartitionGroup |
fromMultiplePartitions(int numConsumers,
List<IntermediateResultPartitionID> resultPartitions,
ResultPartitionType resultPartitionType) |
static ConsumedPartitionGroup |
fromSinglePartition(int numConsumers,
IntermediateResultPartitionID resultPartition,
ResultPartitionType resultPartitionType) |
IntermediateResultPartitionID |
getFirst() |
IntermediateDataSetID |
getIntermediateDataSetID()
Get the ID of IntermediateDataSet this ConsumedPartitionGroup belongs to.
|
int |
getNumberOfUnfinishedPartitions() |
int |
getNumConsumers()
In dynamic graph cases, the number of consumers of ConsumedPartitionGroup can be different
even if they contain the same IntermediateResultPartition.
|
ResultPartitionType |
getResultPartitionType() |
boolean |
isEmpty() |
Iterator<IntermediateResultPartitionID> |
iterator() |
int |
partitionFinished() |
int |
partitionUnfinished() |
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static ConsumedPartitionGroup fromMultiplePartitions(int numConsumers, List<IntermediateResultPartitionID> resultPartitions, ResultPartitionType resultPartitionType)
public static ConsumedPartitionGroup fromSinglePartition(int numConsumers, IntermediateResultPartitionID resultPartition, ResultPartitionType resultPartitionType)
public Iterator<IntermediateResultPartitionID> iterator()
iterator 在接口中 Iterable<IntermediateResultPartitionID>public int size()
public boolean isEmpty()
public int getNumConsumers()
public IntermediateResultPartitionID getFirst()
public IntermediateDataSetID getIntermediateDataSetID()
public int partitionUnfinished()
public int partitionFinished()
@VisibleForTesting public int getNumberOfUnfinishedPartitions()
public boolean areAllPartitionsFinished()
public ResultPartitionType getResultPartitionType()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.