Class DictionaryCompressionOptimizer
java.lang.Object
io.trino.orc.DictionaryCompressionOptimizer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Constructor Summary
ConstructorsConstructorDescriptionDictionaryCompressionOptimizer(Set<? extends DictionaryCompressionOptimizer.DictionaryColumn> writers, int stripeMinBytes, int stripeMaxBytes, int stripeMaxRowCount, int dictionaryMemoryMaxBytes) -
Method Summary
Modifier and TypeMethodDescriptionstatic intestimateIndexBytesPerValue(int dictionaryEntries) voidfinalOptimize(int bufferedBytes) intbooleanisFull(long bufferedBytes) voidoptimize(long bufferedBytes, int stripeRowCount) voidreset()
-
Constructor Details
-
DictionaryCompressionOptimizer
public DictionaryCompressionOptimizer(Set<? extends DictionaryCompressionOptimizer.DictionaryColumn> writers, int stripeMinBytes, int stripeMaxBytes, int stripeMaxRowCount, int dictionaryMemoryMaxBytes)
-
-
Method Details
-
getDictionaryMemoryBytes
public int getDictionaryMemoryBytes() -
isFull
public boolean isFull(long bufferedBytes) -
reset
public void reset() -
finalOptimize
public void finalOptimize(int bufferedBytes) -
optimize
public void optimize(long bufferedBytes, int stripeRowCount) -
estimateIndexBytesPerValue
public static int estimateIndexBytesPerValue(int dictionaryEntries)
-