Class HashTableSizeCalculatorLeanImpl
java.lang.Object
org.apache.drill.exec.physical.impl.join.HashTableSizeCalculatorLeanImpl
- All Implemented Interfaces:
HashTableSizeCalculator
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHashTableSizeCalculatorLeanImpl
(int maxNumRecords, double hashTableDoublingFactor) -
Method Summary
Modifier and TypeMethodDescriptionlong
calculateSize
(HashJoinMemoryCalculator.PartitionStat partitionStat, Map<String, Long> keySizes, double loadFactor, double safetyFactor, double fragmentationFactor) static long
computeMaxVectorSize
(Map<String, Long> vectorSizes, long numRecords, double safetyFactor) static long
computeVectorSizes
(Map<String, Long> vectorSizes, long numRecords, double safetyFactor) double
getType()
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
HashTableSizeCalculatorLeanImpl
public HashTableSizeCalculatorLeanImpl(int maxNumRecords, double hashTableDoublingFactor)
-
-
Method Details
-
calculateSize
public long calculateSize(HashJoinMemoryCalculator.PartitionStat partitionStat, Map<String, Long> keySizes, double loadFactor, double safetyFactor, double fragmentationFactor) - Specified by:
calculateSize
in interfaceHashTableSizeCalculator
-
getDoublingFactor
public double getDoublingFactor()- Specified by:
getDoublingFactor
in interfaceHashTableSizeCalculator
-
getType
- Specified by:
getType
in interfaceHashTableSizeCalculator
-
computeVectorSizes
-
computeMaxVectorSize
-