public class ScalarLongColumnSerializer extends ScalarNestedCommonFormatColumnSerializer<Long>
ScalarLongColumnclosedForWrite, closer, columnNameBytes, dictionaryFileName, dictionaryIdLookup, dictionarySerialized, dictionaryWriter, hasNulls, indexSpec, intermediateValueWriter, log, name, segmentWriteOutMediumARRAY_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 |
|---|
ScalarLongColumnSerializer(String name,
IndexSpec indexSpec,
SegmentWriteOutMedium segmentWriteOutMedium,
Closer closer) |
| Modifier and Type | Method and Description |
|---|---|
void |
openDictionaryWriter() |
protected void |
openValueColumnSerializer()
Called during
ScalarNestedCommonFormatColumnSerializer.open() to allow opening any separate type specific value column serializers |
protected int |
processValue(Object rawValue)
Called during
ScalarNestedCommonFormatColumnSerializer.serialize(ColumnValueSelector) to convert value to dictionary id. |
void |
serializeDictionaries(Iterable<String> strings,
Iterable<Long> longs,
Iterable<Double> doubles,
Iterable<int[]> arrays) |
protected void |
writeValueColumn(FileSmoosher smoosher)
Called during
ScalarNestedCommonFormatColumnSerializer.writeTo(WritableByteChannel, FileSmoosher) to allow any type specific value column
serializers to use the FileSmoosher to write stuff to places. |
getColumnName, getGlobalLookup, getSerializedSize, hasNulls, open, serialize, writeTocomputeFilenameBytes, getInternalFileName, serializeFields, writeInternal, writeV0Headerpublic ScalarLongColumnSerializer(String name, IndexSpec indexSpec, SegmentWriteOutMedium segmentWriteOutMedium, Closer closer)
protected int processValue(@Nullable Object rawValue) throws IOException
ScalarNestedCommonFormatColumnSerializerScalarNestedCommonFormatColumnSerializer.serialize(ColumnValueSelector) to convert value to dictionary id.
Implementations may optionally also serialize the value to a type specific value column if they opened one with
ScalarNestedCommonFormatColumnSerializer.openValueColumnSerializer(), or do whatever else is useful to do while handling a single row value.
processValue in class ScalarNestedCommonFormatColumnSerializer<Long>IOExceptionpublic void openDictionaryWriter()
throws IOException
openDictionaryWriter in class NestedCommonFormatColumnSerializerIOExceptionprotected void openValueColumnSerializer()
throws IOException
ScalarNestedCommonFormatColumnSerializerScalarNestedCommonFormatColumnSerializer.open() to allow opening any separate type specific value column serializersopenValueColumnSerializer in class ScalarNestedCommonFormatColumnSerializer<Long>IOExceptionpublic void serializeDictionaries(Iterable<String> strings, Iterable<Long> longs, Iterable<Double> doubles, Iterable<int[]> arrays) throws IOException
serializeDictionaries in class NestedCommonFormatColumnSerializerIOExceptionprotected void writeValueColumn(FileSmoosher smoosher) throws IOException
ScalarNestedCommonFormatColumnSerializerScalarNestedCommonFormatColumnSerializer.writeTo(WritableByteChannel, FileSmoosher) to allow any type specific value column
serializers to use the FileSmoosher to write stuff to places.writeValueColumn in class ScalarNestedCommonFormatColumnSerializer<Long>IOExceptionCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.