public class VariantColumnSerializer extends NestedCommonFormatColumnSerializer
NestedCommonFormatColumn for single type arrays and mixed type columns, but not columns
with nested data. If variantTypeSetByte is set then the column has mixed types, which is added to the base
metadata stored in the column file.ARRAY_DICTIONARY_FILE_NAME, ARRAY_ELEMENT_BITMAP_INDEX_FILE_NAME, ARRAY_ELEMENT_DICTIONARY_FILE_NAME, BITMAP_INDEX_FILE_NAME, DOUBLE_DICTIONARY_FILE_NAME, DOUBLE_VALUE_COLUMN_FILE_NAME, ENCODED_VALUE_COLUMN_FILE_NAME, LONG_DICTIONARY_FILE_NAME, LONG_VALUE_COLUMN_FILE_NAME, NESTED_FIELD_PREFIX, NULL_BITMAP_FILE_NAME, RAW_FILE_NAME, STRING_DICTIONARY_FILE_NAME, V0| Constructor and Description |
|---|
VariantColumnSerializer(String name,
Byte variantTypeSetByte,
IndexSpec indexSpec,
SegmentWriteOutMedium segmentWriteOutMedium,
Closer closer) |
| Modifier and Type | Method and Description |
|---|---|
String |
getColumnName() |
DictionaryIdLookup |
getGlobalLookup() |
long |
getSerializedSize()
Returns the number of bytes, that this Serializer will write to the output _channel_ (not smoosher) on a
Serializer.writeTo(java.nio.channels.WritableByteChannel, org.apache.druid.java.util.common.io.smoosh.FileSmoosher) call. |
boolean |
hasNulls() |
void |
open() |
void |
openDictionaryWriter() |
void |
serialize(ColumnValueSelector<? extends StructuredData> selector) |
void |
serializeDictionaries(Iterable<String> strings,
Iterable<Long> longs,
Iterable<Double> doubles,
Iterable<int[]> arrays) |
void |
writeTo(WritableByteChannel channel,
FileSmoosher smoosher)
Writes serialized form of this object to the given channel.
|
computeFilenameBytes, getInternalFileName, serializeFields, writeInternal, writeV0Headerpublic String getColumnName()
getColumnName in class NestedCommonFormatColumnSerializerpublic DictionaryIdLookup getGlobalLookup()
getGlobalLookup in class NestedCommonFormatColumnSerializerpublic boolean hasNulls()
hasNulls in class NestedCommonFormatColumnSerializerpublic void openDictionaryWriter()
throws IOException
openDictionaryWriter in class NestedCommonFormatColumnSerializerIOExceptionpublic void open()
throws IOException
IOExceptionpublic void serializeDictionaries(Iterable<String> strings, Iterable<Long> longs, Iterable<Double> doubles, Iterable<int[]> arrays) throws IOException
serializeDictionaries in class NestedCommonFormatColumnSerializerIOExceptionpublic void serialize(ColumnValueSelector<? extends StructuredData> selector) throws IOException
IOExceptionpublic long getSerializedSize()
SerializerSerializer.writeTo(java.nio.channels.WritableByteChannel, org.apache.druid.java.util.common.io.smoosh.FileSmoosher) call.public void writeTo(WritableByteChannel channel, FileSmoosher smoosher) throws IOException
SerializerIOExceptionCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.