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.PostBuildCalculationsinitialize in interface HashJoinMemoryCalculator.PostBuildCalculationsprobeEmty - True if the probe is empty. False otherwise.public int getProbeRecordsPerBatch()
getProbeRecordsPerBatch in interface HashJoinMemoryCalculator.PostBuildCalculationspublic boolean shouldSpill()
shouldSpill in interface HashJoinMemoryCalculator.PostBuildCalculationspublic String makeDebugString()
makeDebugString in interface HashJoinMemoryCalculator.PostBuildCalculations@Nullable public HashJoinMemoryCalculator next()
HashJoinStateCalculatorHashJoinStateCalculator.
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()
HashJoinStateCalculatorHashJoinState corresponding to this calculator.getState in interface HashJoinStateCalculator<HashJoinMemoryCalculator>Copyright © 2021 The Apache Software Foundation. All rights reserved.