public class HashTableSizeCalculatorLeanImpl extends Object implements HashTableSizeCalculator
| Constructor and Description |
|---|
HashTableSizeCalculatorLeanImpl(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 |
computeMaxVectorSize(Map<String,Long> vectorSizes,
long numRecords,
double safetyFactor) |
static long |
computeVectorSizes(Map<String,Long> vectorSizes,
long numRecords,
double safetyFactor) |
double |
getDoublingFactor() |
String |
getType() |
public static final String TYPE
public HashTableSizeCalculatorLeanImpl(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 HashTableSizeCalculatorpublic static long computeVectorSizes(Map<String,Long> vectorSizes, long numRecords, double safetyFactor)
Copyright © 2021 The Apache Software Foundation. All rights reserved.