Class DictionaryValuesWriter.PlainIntegerDictionaryValuesWriter
- java.lang.Object
-
- org.apache.parquet.column.values.ValuesWriter
-
- org.apache.parquet.column.values.dictionary.DictionaryValuesWriter
-
- org.apache.parquet.column.values.dictionary.DictionaryValuesWriter.PlainIntegerDictionaryValuesWriter
-
- All Implemented Interfaces:
RequiresFallback
- Enclosing class:
- DictionaryValuesWriter
public static class DictionaryValuesWriter.PlainIntegerDictionaryValuesWriter extends DictionaryValuesWriter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.parquet.column.values.dictionary.DictionaryValuesWriter
DictionaryValuesWriter.PlainBinaryDictionaryValuesWriter, DictionaryValuesWriter.PlainDoubleDictionaryValuesWriter, DictionaryValuesWriter.PlainFixedLenArrayDictionaryValuesWriter, DictionaryValuesWriter.PlainFloatDictionaryValuesWriter, DictionaryValuesWriter.PlainIntegerDictionaryValuesWriter, DictionaryValuesWriter.PlainLongDictionaryValuesWriter
-
-
Field Summary
-
Fields inherited from class org.apache.parquet.column.values.dictionary.DictionaryValuesWriter
allocator, dictionaryByteSize, dictionaryTooBig, encodedValues, encodingForDictionaryPage, firstPage, lastUsedDictionaryByteSize, lastUsedDictionarySize, maxDictionaryByteSize
-
-
Constructor Summary
Constructors Constructor Description PlainIntegerDictionaryValuesWriter(int maxDictionaryByteSize, Encoding encodingForDataPage, Encoding encodingForDictionaryPage, org.apache.parquet.bytes.ByteBufferAllocator allocator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clearDictionaryContent()
clear/free the underlying dictionary contentvoid
fallBackDictionaryEncodedData(ValuesWriter writer)
int
getDictionarySize()
DictionaryPage
toDictPageAndClose()
Returns the dictionary generated by this writer if one was created.void
writeInteger(int v)
-
Methods inherited from class org.apache.parquet.column.values.dictionary.DictionaryValuesWriter
close, dictPage, fallBackAllValuesTo, getAllocatedSize, getBufferedSize, getBytes, getEncoding, isCompressionSatisfying, memUsageString, reset, resetDictionary, shouldFallBack
-
Methods inherited from class org.apache.parquet.column.values.ValuesWriter
writeBoolean, writeByte, writeBytes, writeDouble, writeFloat, writeLong
-
-
-
-
Method Detail
-
writeInteger
public void writeInteger(int v)
- Overrides:
writeInteger
in classValuesWriter
- Parameters:
v
- the value to encode
-
toDictPageAndClose
public DictionaryPage toDictPageAndClose()
Description copied from class:ValuesWriter
Returns the dictionary generated by this writer if one was created. As part of this operation the dictionary is closed and will not have any new values written into it.- Overrides:
toDictPageAndClose
in classValuesWriter
- Returns:
- the dictionary page or null if not dictionary based
-
getDictionarySize
public int getDictionarySize()
- Specified by:
getDictionarySize
in classDictionaryValuesWriter
- Returns:
- size in items
-
clearDictionaryContent
protected void clearDictionaryContent()
Description copied from class:DictionaryValuesWriter
clear/free the underlying dictionary content- Specified by:
clearDictionaryContent
in classDictionaryValuesWriter
-
fallBackDictionaryEncodedData
public void fallBackDictionaryEncodedData(ValuesWriter writer)
- Specified by:
fallBackDictionaryEncodedData
in classDictionaryValuesWriter
-
-