public static class HashJoinMechanicalMemoryCalculator.MechanicalPostBuildCalculations extends Object implements HashJoinMemoryCalculator.PostBuildCalculations
Constructor and Description |
---|
MechanicalPostBuildCalculations(int maxNumInMemBatches,
HashJoinMemoryCalculator.PartitionStatSet partitionStatSet,
int recordsPerPartitionBatchProbe) |
Modifier and Type | Method and Description |
---|---|
int |
getProbeRecordsPerBatch() |
HashJoinState |
getState()
The current
HashJoinState corresponding to this calculator. |
void |
initialize(boolean probeEmty)
Initializes the calculator with additional information needed.
|
String |
makeDebugString() |
HashJoinMemoryCalculator |
next()
Signifies that the current state is complete and returns the next
HashJoinStateCalculator . |
boolean |
shouldSpill() |
public MechanicalPostBuildCalculations(int maxNumInMemBatches, HashJoinMemoryCalculator.PartitionStatSet partitionStatSet, int recordsPerPartitionBatchProbe)
public void initialize(boolean probeEmty)
HashJoinMemoryCalculator.PostBuildCalculations
initialize
in interface HashJoinMemoryCalculator.PostBuildCalculations
probeEmty
- True if the probe is empty. False otherwise.public int getProbeRecordsPerBatch()
getProbeRecordsPerBatch
in interface HashJoinMemoryCalculator.PostBuildCalculations
public boolean shouldSpill()
shouldSpill
in interface HashJoinMemoryCalculator.PostBuildCalculations
public String makeDebugString()
makeDebugString
in interface HashJoinMemoryCalculator.PostBuildCalculations
@Nullable public HashJoinMemoryCalculator next()
HashJoinStateCalculator
HashJoinStateCalculator
.
Returns null in the case where there is no next state.next
in interface HashJoinStateCalculator<HashJoinMemoryCalculator>
HashJoinStateCalculator
or null if this was the last state.public HashJoinState getState()
HashJoinStateCalculator
HashJoinState
corresponding to this calculator.getState
in interface HashJoinStateCalculator<HashJoinMemoryCalculator>
Copyright © 2021 The Apache Software Foundation. All rights reserved.