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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetState()The currentHashJoinStatecorresponding to this calculator.voidinitialize(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.PostBuildCalculationsInitializes the calculator with additional information needed.- Specified by:
initializein interfaceHashJoinMemoryCalculator.PostBuildCalculations- Parameters:
hasProbeData- True if the probe is empty. False otherwise.
-
getProbeRecordsPerBatch
public int getProbeRecordsPerBatch()- Specified by:
getProbeRecordsPerBatchin interfaceHashJoinMemoryCalculator.PostBuildCalculations
-
shouldSpill
public boolean shouldSpill()- Specified by:
shouldSpillin interfaceHashJoinMemoryCalculator.PostBuildCalculations
-
next
Description copied from interface:HashJoinStateCalculatorSignifies that the current state is complete and returns the nextHashJoinStateCalculator. Returns null in the case where there is no next state.- Specified by:
nextin interfaceHashJoinStateCalculator<HashJoinMemoryCalculator>- Returns:
- The next
HashJoinStateCalculatoror null if this was the last state.
-
getState
Description copied from interface:HashJoinStateCalculatorThe currentHashJoinStatecorresponding to this calculator.- Specified by:
getStatein interfaceHashJoinStateCalculator<HashJoinMemoryCalculator>- Returns:
-
makeDebugString
- Specified by:
makeDebugStringin interfaceHashJoinMemoryCalculator.PostBuildCalculations
-