Class HashJoinMechanicalMemoryCalculator
java.lang.Object
org.apache.drill.exec.physical.impl.join.HashJoinMechanicalMemoryCalculator
- All Implemented Interfaces:
HashJoinMemoryCalculator
,HashJoinStateCalculator<HashJoinMemoryCalculator.BuildSidePartitioning>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface org.apache.drill.exec.physical.impl.join.HashJoinMemoryCalculator
HashJoinMemoryCalculator.BatchStat, HashJoinMemoryCalculator.BuildSidePartitioning, HashJoinMemoryCalculator.PartitionStat, HashJoinMemoryCalculator.PartitionStatSet, HashJoinMemoryCalculator.PostBuildCalculations
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetState()
The currentHashJoinState
corresponding to this calculator.void
initialize
(boolean doMemoryCalc) next()
Signifies that the current state is complete and returns the nextHashJoinStateCalculator
.
-
Constructor Details
-
HashJoinMechanicalMemoryCalculator
public HashJoinMechanicalMemoryCalculator(int maxNumInMemBatches)
-
-
Method Details
-
initialize
public void initialize(boolean doMemoryCalc) - Specified by:
initialize
in interfaceHashJoinMemoryCalculator
-
next
Description copied from interface:HashJoinStateCalculator
Signifies that the current state is complete and returns the nextHashJoinStateCalculator
. Returns null in the case where there is no next state.- Specified by:
next
in interfaceHashJoinStateCalculator<HashJoinMemoryCalculator.BuildSidePartitioning>
- Returns:
- The next
HashJoinStateCalculator
or null if this was the last state.
-
getState
Description copied from interface:HashJoinStateCalculator
The currentHashJoinState
corresponding to this calculator.- Specified by:
getState
in interfaceHashJoinStateCalculator<HashJoinMemoryCalculator.BuildSidePartitioning>
- Returns:
-