public static class DictionaryValuesWriter.PlainFixedLenArrayDictionaryValuesWriter extends DictionaryValuesWriter.PlainBinaryDictionaryValuesWriter
DictionaryValuesWriter.PlainBinaryDictionaryValuesWriter, DictionaryValuesWriter.PlainDoubleDictionaryValuesWriter, DictionaryValuesWriter.PlainFixedLenArrayDictionaryValuesWriter, DictionaryValuesWriter.PlainFloatDictionaryValuesWriter, DictionaryValuesWriter.PlainIntegerDictionaryValuesWriter, DictionaryValuesWriter.PlainLongDictionaryValuesWriter
binaryDictionaryContent
allocator, dictionaryByteSize, dictionaryTooBig, encodedValues, encodingForDictionaryPage, firstPage, lastUsedDictionaryByteSize, lastUsedDictionarySize, maxDictionaryByteSize
Constructor and Description |
---|
PlainFixedLenArrayDictionaryValuesWriter(int maxDictionaryByteSize,
int length,
Encoding encodingForDataPage,
Encoding encodingForDictionaryPage,
ByteBufferAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
DictionaryPage |
toDictPageAndClose()
Returns the dictionary generated by this writer if one was created.
|
void |
writeBytes(Binary value) |
clearDictionaryContent, fallBackDictionaryEncodedData, getDictionarySize
close, dictPage, fallBackAllValuesTo, getAllocatedSize, getBufferedSize, getBytes, getEncoding, isCompressionSatisfying, memUsageString, reset, resetDictionary, shouldFallBack
writeBoolean, writeByte, writeDouble, writeFloat, writeInteger, writeLong
public PlainFixedLenArrayDictionaryValuesWriter(int maxDictionaryByteSize, int length, Encoding encodingForDataPage, Encoding encodingForDictionaryPage, ByteBufferAllocator allocator)
public void writeBytes(Binary value)
writeBytes
in class DictionaryValuesWriter.PlainBinaryDictionaryValuesWriter
value
- the value to encodepublic DictionaryPage toDictPageAndClose()
ValuesWriter
toDictPageAndClose
in class DictionaryValuesWriter.PlainBinaryDictionaryValuesWriter
Copyright © 2023 The Apache Software Foundation. All rights reserved.