Package io.trino.orc
Class DictionaryCompressionOptimizer
- java.lang.Object
-
- io.trino.orc.DictionaryCompressionOptimizer
-
public class DictionaryCompressionOptimizer extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDictionaryCompressionOptimizer.DictionaryColumn
-
Constructor Summary
Constructors Constructor Description DictionaryCompressionOptimizer(Set<? extends DictionaryCompressionOptimizer.DictionaryColumn> writers, int stripeMinBytes, int stripeMaxBytes, int stripeMaxRowCount, int dictionaryMemoryMaxBytes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intestimateIndexBytesPerValue(int dictionaryEntries)voidfinalOptimize(int bufferedBytes)intgetDictionaryMemoryBytes()booleanisFull(long bufferedBytes)voidoptimize(int bufferedBytes, int stripeRowCount)voidreset()
-
-
-
Constructor Detail
-
DictionaryCompressionOptimizer
public DictionaryCompressionOptimizer(Set<? extends DictionaryCompressionOptimizer.DictionaryColumn> writers, int stripeMinBytes, int stripeMaxBytes, int stripeMaxRowCount, int dictionaryMemoryMaxBytes)
-
-
Method Detail
-
getDictionaryMemoryBytes
public int getDictionaryMemoryBytes()
-
isFull
public boolean isFull(long bufferedBytes)
-
reset
public void reset()
-
finalOptimize
public void finalOptimize(int bufferedBytes)
-
optimize
public void optimize(int bufferedBytes, int stripeRowCount)
-
estimateIndexBytesPerValue
public static int estimateIndexBytesPerValue(int dictionaryEntries)
-
-