Class HashTableSizeCalculatorLeanImpl
java.lang.Object
org.apache.drill.exec.physical.impl.join.HashTableSizeCalculatorLeanImpl
- All Implemented Interfaces:
HashTableSizeCalculator
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHashTableSizeCalculatorLeanImpl(int maxNumRecords, double hashTableDoublingFactor) -
Method Summary
Modifier and TypeMethodDescriptionlongcalculateSize(HashJoinMemoryCalculator.PartitionStat partitionStat, Map<String, Long> keySizes, double loadFactor, double safetyFactor, double fragmentationFactor) static longcomputeMaxVectorSize(Map<String, Long> vectorSizes, long numRecords, double safetyFactor) static longcomputeVectorSizes(Map<String, Long> vectorSizes, long numRecords, double safetyFactor) doublegetType()
-
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:
calculateSizein interfaceHashTableSizeCalculator
-
getDoublingFactor
public double getDoublingFactor()- Specified by:
getDoublingFactorin interfaceHashTableSizeCalculator
-
getType
- Specified by:
getTypein interfaceHashTableSizeCalculator
-
computeVectorSizes
-
computeMaxVectorSize
-