Class HashJoinMemoryCalculatorImpl.NoopBuildSidePartitioningImpl
java.lang.Object
org.apache.drill.exec.physical.impl.join.HashJoinMemoryCalculatorImpl.NoopBuildSidePartitioningImpl
- All Implemented Interfaces:
HashJoinMemoryCalculator.BuildSidePartitioning
,HashJoinStateCalculator<HashJoinMemoryCalculator.PostBuildCalculations>
- Enclosing class:
- HashJoinMemoryCalculatorImpl
public static class HashJoinMemoryCalculatorImpl.NoopBuildSidePartitioningImpl
extends Object
implements HashJoinMemoryCalculator.BuildSidePartitioning
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
int
getState()
The currentHashJoinState
corresponding to this calculator.void
initialize
(boolean firstCycle, boolean reserveHash, RecordBatch buildSideBatch, RecordBatch probeSideBatch, Set<String> joinColumns, boolean probeEmpty, long memoryAvailable, int initialPartitions, int recordsPerPartitionBatchBuild, int recordsPerPartitionBatchProbe, int maxBatchNumRecordsBuild, int maxBatchNumRecordsProbe, int outputBatchSize, double loadFactor) next()
Signifies that the current state is complete and returns the nextHashJoinStateCalculator
.void
setPartitionStatSet
(HashJoinMemoryCalculator.PartitionStatSet partitionStatSet) boolean
-
Constructor Details
-
NoopBuildSidePartitioningImpl
public NoopBuildSidePartitioningImpl()
-
-
Method Details
-
initialize
public void initialize(boolean firstCycle, boolean reserveHash, RecordBatch buildSideBatch, RecordBatch probeSideBatch, Set<String> joinColumns, boolean probeEmpty, long memoryAvailable, int initialPartitions, int recordsPerPartitionBatchBuild, int recordsPerPartitionBatchProbe, int maxBatchNumRecordsBuild, int maxBatchNumRecordsProbe, int outputBatchSize, double loadFactor) - Specified by:
initialize
in interfaceHashJoinMemoryCalculator.BuildSidePartitioning
-
setPartitionStatSet
- Specified by:
setPartitionStatSet
in interfaceHashJoinMemoryCalculator.BuildSidePartitioning
-
getNumPartitions
public int getNumPartitions()- Specified by:
getNumPartitions
in interfaceHashJoinMemoryCalculator.BuildSidePartitioning
-
getBuildReservedMemory
public long getBuildReservedMemory()- Specified by:
getBuildReservedMemory
in interfaceHashJoinMemoryCalculator.BuildSidePartitioning
-
getMaxReservedMemory
public long getMaxReservedMemory()- Specified by:
getMaxReservedMemory
in interfaceHashJoinMemoryCalculator.BuildSidePartitioning
-
shouldSpill
public boolean shouldSpill()- Specified by:
shouldSpill
in interfaceHashJoinMemoryCalculator.BuildSidePartitioning
-
makeDebugString
- Specified by:
makeDebugString
in interfaceHashJoinMemoryCalculator.BuildSidePartitioning
-
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.PostBuildCalculations>
- 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.PostBuildCalculations>
- Returns:
-