public class HashTableSizeCalculatorConservativeImpl extends Object implements HashTableSizeCalculator
| Modifier and Type | Field and Description |
|---|---|
static double |
HASHTABLE_DOUBLING_FACTOR |
static String |
TYPE |
| Constructor and Description |
|---|
HashTableSizeCalculatorConservativeImpl(int maxNumRecords,
double hashTableDoublingFactor) |
| Modifier and Type | Method and Description |
|---|---|
long |
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 |
getDoublingFactor() |
String |
getType() |
public static final String TYPE
public static final double HASHTABLE_DOUBLING_FACTOR
public HashTableSizeCalculatorConservativeImpl(int maxNumRecords,
double hashTableDoublingFactor)
public long calculateSize(HashJoinMemoryCalculator.PartitionStat partitionStat, Map<String,Long> keySizes, double loadFactor, double safetyFactor, double fragmentationFactor)
calculateSize in interface HashTableSizeCalculatorpublic double getDoublingFactor()
getDoublingFactor in interface HashTableSizeCalculatorpublic String getType()
getType in interface HashTableSizeCalculatorCopyright © 2021 The Apache Software Foundation. All rights reserved.