public class NestedDataColumnSerializer extends Object implements GenericColumnSerializer<StructuredData>
| Modifier and Type | Field and Description |
|---|---|
static String |
DOUBLE_DICTIONARY_FILE_NAME |
static org.apache.druid.segment.nested.NestedDataColumnSerializer.IntTypeStrategy |
INT_TYPE_STRATEGY |
static String |
LONG_DICTIONARY_FILE_NAME |
static String |
NESTED_FIELD_PREFIX |
static String |
NULL_BITMAP_FILE_NAME |
static String |
RAW_FILE_NAME |
static String |
STRING_DICTIONARY_FILE_NAME |
| Constructor and Description |
|---|
NestedDataColumnSerializer(String name,
IndexSpec indexSpec,
SegmentWriteOutMedium segmentWriteOutMedium,
ProgressIndicator progressIndicator,
Closer closer) |
| Modifier and Type | Method and Description |
|---|---|
static String |
getInternalFileName(String fileNameBase,
String field) |
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. |
void |
open() |
void |
serialize(ColumnValueSelector<? extends StructuredData> selector) |
void |
serializeDoubleDictionary(Iterable<Double> dictionaryValues) |
void |
serializeFields(SortedMap<String,NestedLiteralTypeInfo.MutableTypeSet> fields) |
void |
serializeLongDictionary(Iterable<Long> dictionaryValues) |
void |
serializeStringDictionary(Iterable<String> dictionaryValues) |
void |
writeTo(WritableByteChannel channel,
FileSmoosher smoosher)
Writes serialized form of this object to the given channel.
|
public static final org.apache.druid.segment.nested.NestedDataColumnSerializer.IntTypeStrategy INT_TYPE_STRATEGY
public static final String STRING_DICTIONARY_FILE_NAME
public static final String LONG_DICTIONARY_FILE_NAME
public static final String DOUBLE_DICTIONARY_FILE_NAME
public static final String RAW_FILE_NAME
public static final String NULL_BITMAP_FILE_NAME
public static final String NESTED_FIELD_PREFIX
public NestedDataColumnSerializer(String name, IndexSpec indexSpec, SegmentWriteOutMedium segmentWriteOutMedium, ProgressIndicator progressIndicator, Closer closer)
public void open()
throws IOException
open in interface GenericColumnSerializer<StructuredData>IOExceptionpublic void serializeFields(SortedMap<String,NestedLiteralTypeInfo.MutableTypeSet> fields) throws IOException
IOExceptionpublic void serializeStringDictionary(Iterable<String> dictionaryValues) throws IOException
IOExceptionpublic void serializeLongDictionary(Iterable<Long> dictionaryValues) throws IOException
IOExceptionpublic void serializeDoubleDictionary(Iterable<Double> dictionaryValues) throws IOException
IOExceptionpublic void serialize(ColumnValueSelector<? extends StructuredData> selector) throws IOException
serialize in interface GenericColumnSerializer<StructuredData>IOExceptionpublic long getSerializedSize()
throws IOException
SerializerSerializer.writeTo(java.nio.channels.WritableByteChannel, org.apache.druid.java.util.common.io.smoosh.FileSmoosher) call.getSerializedSize in interface SerializerIOExceptionpublic void writeTo(WritableByteChannel channel, FileSmoosher smoosher) throws IOException
SerializerwriteTo in interface SerializerIOExceptionCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.