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