Class HashJoinMechanicalMemoryCalculator.MechanicalPostBuildCalculations
java.lang.Object
org.apache.drill.exec.physical.impl.join.HashJoinMechanicalMemoryCalculator.MechanicalPostBuildCalculations
- All Implemented Interfaces:
HashJoinMemoryCalculator.PostBuildCalculations
,HashJoinStateCalculator<HashJoinMemoryCalculator>
- Enclosing class:
- HashJoinMechanicalMemoryCalculator
public static class HashJoinMechanicalMemoryCalculator.MechanicalPostBuildCalculations
extends Object
implements HashJoinMemoryCalculator.PostBuildCalculations
-
Constructor Summary
ConstructorDescriptionMechanicalPostBuildCalculations
(int maxNumInMemBatches, HashJoinMemoryCalculator.PartitionStatSet partitionStatSet, int recordsPerPartitionBatchProbe) -
Method Summary
Modifier and TypeMethodDescriptionint
getState()
The currentHashJoinState
corresponding to this calculator.void
initialize
(boolean probeEmty) Initializes the calculator with additional information needed.next()
Signifies that the current state is complete and returns the nextHashJoinStateCalculator
.boolean
-
Constructor Details
-
MechanicalPostBuildCalculations
public MechanicalPostBuildCalculations(int maxNumInMemBatches, HashJoinMemoryCalculator.PartitionStatSet partitionStatSet, int recordsPerPartitionBatchProbe)
-
-
Method Details
-
initialize
public void initialize(boolean probeEmty) Description copied from interface:HashJoinMemoryCalculator.PostBuildCalculations
Initializes the calculator with additional information needed.- Specified by:
initialize
in interfaceHashJoinMemoryCalculator.PostBuildCalculations
- Parameters:
probeEmty
- True if the probe is empty. False otherwise.
-
getProbeRecordsPerBatch
public int getProbeRecordsPerBatch()- Specified by:
getProbeRecordsPerBatch
in interfaceHashJoinMemoryCalculator.PostBuildCalculations
-
shouldSpill
public boolean shouldSpill()- Specified by:
shouldSpill
in interfaceHashJoinMemoryCalculator.PostBuildCalculations
-
makeDebugString
- Specified by:
makeDebugString
in interfaceHashJoinMemoryCalculator.PostBuildCalculations
-
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>
- 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>
- Returns:
-