Class HashTableSizeCalculatorConservativeImpl
java.lang.Object
org.apache.drill.exec.physical.impl.join.HashTableSizeCalculatorConservativeImpl
- All Implemented Interfaces:
HashTableSizeCalculator
public class HashTableSizeCalculatorConservativeImpl
extends Object
implements HashTableSizeCalculator
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHashTableSizeCalculatorConservativeImpl
(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
computeVectorSizes
(Map<String, Long> vectorSizes, long numRecords, double safetyFactor) double
getType()
-
Field Details
-
TYPE
- See Also:
-
HASHTABLE_DOUBLING_FACTOR
public static final double HASHTABLE_DOUBLING_FACTOR- See Also:
-
-
Constructor Details
-
HashTableSizeCalculatorConservativeImpl
public HashTableSizeCalculatorConservativeImpl(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
-