public class IntermediateResult extends Object
Constructor and Description |
---|
IntermediateResult(IntermediateDataSetID id,
ExecutionJobVertex producer,
int numParallelProducers,
ResultPartitionType resultType) |
Modifier and Type | Method and Description |
---|---|
int |
getConnectionIndex() |
IntermediateDataSetID |
getId() |
int |
getNumberOfAssignedPartitions() |
IntermediateResultPartition |
getPartitionById(IntermediateResultPartitionID resultPartitionId)
Returns the partition with the given ID.
|
IntermediateResultPartition[] |
getPartitions() |
ExecutionJobVertex |
getProducer() |
ResultPartitionType |
getResultType() |
int |
registerConsumer() |
void |
setPartition(int partitionNumber,
IntermediateResultPartition partition) |
String |
toString() |
public IntermediateResult(IntermediateDataSetID id, ExecutionJobVertex producer, int numParallelProducers, ResultPartitionType resultType)
public void setPartition(int partitionNumber, IntermediateResultPartition partition)
public IntermediateDataSetID getId()
public ExecutionJobVertex getProducer()
public IntermediateResultPartition[] getPartitions()
public IntermediateResultPartition getPartitionById(IntermediateResultPartitionID resultPartitionId)
resultPartitionId
- ID of the partition to look upNullPointerException
- If partition ID null
IllegalArgumentException
- Thrown if unknown partition IDpublic int getNumberOfAssignedPartitions()
public ResultPartitionType getResultType()
public int registerConsumer()
public int getConnectionIndex()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.