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