Package org.apache.druid.segment.nested
Class ScalarLongFieldColumnWriter
- java.lang.Object
-
- org.apache.druid.segment.nested.GlobalDictionaryEncodedFieldColumnWriter<Long>
-
- org.apache.druid.segment.nested.ScalarLongFieldColumnWriter
-
public final class ScalarLongFieldColumnWriter extends GlobalDictionaryEncodedFieldColumnWriter<Long>
Nested field writer for long type columns ofNestedDataColumnSerializer. In addition to the normal dictionary encoded column, this writer also writes an additional long value column withlongsSerializer, which is written to duringGlobalDictionaryEncodedFieldColumnWriter.addValue(int, java.lang.Object).
-
-
Field Summary
-
Fields inherited from class org.apache.druid.segment.nested.GlobalDictionaryEncodedFieldColumnWriter
arrayElements, columnName, cursorPosition, encodedValueSerializer, fieldName, fieldResourceCloser, flags, globalDictionaryIdLookup, indexSpec, intermediateValueWriter, localDictionary, segmentWriteOutMedium, version
-
-
Constructor Summary
Constructors Constructor Description ScalarLongFieldColumnWriter(String columnName, String fieldName, SegmentWriteOutMedium segmentWriteOutMedium, IndexSpec indexSpec, DictionaryIdLookup globalDictionaryIdLookup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidopenColumnSerializer(SegmentWriteOutMedium medium, int maxId)-
Methods inherited from class org.apache.druid.segment.nested.GlobalDictionaryEncodedFieldColumnWriter
addValue, open, writeLongAndDoubleColumnLength, writeTo
-
-
-
-
Constructor Detail
-
ScalarLongFieldColumnWriter
public ScalarLongFieldColumnWriter(String columnName, String fieldName, SegmentWriteOutMedium segmentWriteOutMedium, IndexSpec indexSpec, DictionaryIdLookup globalDictionaryIdLookup)
-
-
Method Detail
-
openColumnSerializer
public void openColumnSerializer(SegmentWriteOutMedium medium, int maxId) throws IOException
- Overrides:
openColumnSerializerin classGlobalDictionaryEncodedFieldColumnWriter<Long>- Throws:
IOException
-
-