public class NestedDataColumnSerializerV4 extends Object implements GenericColumnSerializer<StructuredData>
| Modifier and Type | Field and Description |
|---|---|
static String |
ARRAY_DICTIONARY_FILE_NAME |
static String |
DOUBLE_DICTIONARY_FILE_NAME |
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 |
|---|
NestedDataColumnSerializerV4(String name,
IndexSpec indexSpec,
SegmentWriteOutMedium segmentWriteOutMedium,
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 |
serializeDictionaries(Iterable<String> strings,
Iterable<Long> longs,
Iterable<Double> doubles) |
void |
serializeFields(SortedMap<String,FieldTypeInfo.MutableTypeSet> fields) |
void |
writeTo(WritableByteChannel channel,
FileSmoosher smoosher)
Writes serialized form of this object to the given channel.
|
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 ARRAY_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 NestedDataColumnSerializerV4(String name, IndexSpec indexSpec, SegmentWriteOutMedium segmentWriteOutMedium, Closer closer)
public void open()
throws IOException
open in interface GenericColumnSerializer<StructuredData>IOExceptionpublic void serializeFields(SortedMap<String,FieldTypeInfo.MutableTypeSet> fields) throws IOException
IOExceptionpublic void serializeDictionaries(Iterable<String> strings, Iterable<Long> longs, Iterable<Double> doubles) 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–2023 The Apache Software Foundation. All rights reserved.