public class ColumnDescriptor extends Object implements Serializer
Modifier and Type | Class and Description |
---|---|
static class |
ColumnDescriptor.Builder |
Constructor and Description |
---|
ColumnDescriptor(ValueType valueType,
boolean hasMultipleValues,
List<ColumnPartSerde> parts) |
Modifier and Type | Method and Description |
---|---|
static ColumnDescriptor.Builder |
builder() |
List<ColumnPartSerde> |
getParts() |
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. |
ValueType |
getValueType() |
boolean |
isHasMultipleValues() |
ColumnHolder |
read(ByteBuffer buffer,
ColumnConfig columnConfig,
SmooshedFileMapper smooshedFiles) |
void |
writeTo(WritableByteChannel channel,
FileSmoosher smoosher)
Writes serialized form of this object to the given channel.
|
public ColumnDescriptor(ValueType valueType, boolean hasMultipleValues, List<ColumnPartSerde> parts)
public static ColumnDescriptor.Builder builder()
public ValueType getValueType()
public boolean isHasMultipleValues()
public List<ColumnPartSerde> getParts()
public long getSerializedSize() throws IOException
Serializer
Serializer.writeTo(java.nio.channels.WritableByteChannel, org.apache.druid.java.util.common.io.smoosh.FileSmoosher)
call.getSerializedSize
in interface Serializer
IOException
public void writeTo(WritableByteChannel channel, FileSmoosher smoosher) throws IOException
Serializer
writeTo
in interface Serializer
IOException
public ColumnHolder read(ByteBuffer buffer, ColumnConfig columnConfig, SmooshedFileMapper smooshedFiles)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.