Package org.apache.druid.segment.column
Class ColumnDescriptor
- java.lang.Object
-
- org.apache.druid.segment.column.ColumnDescriptor
-
- All Implemented Interfaces:
Serializer
public class ColumnDescriptor extends Object implements Serializer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ColumnDescriptor.Builder
-
Constructor Summary
Constructors Constructor Description ColumnDescriptor(ValueType valueType, boolean hasMultipleValues, List<ColumnPartSerde> parts)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 aSerializer.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.
-
-
-
Constructor Detail
-
ColumnDescriptor
public ColumnDescriptor(ValueType valueType, boolean hasMultipleValues, List<ColumnPartSerde> parts)
-
-
Method Detail
-
builder
public static ColumnDescriptor.Builder builder()
-
getValueType
public ValueType getValueType()
-
isHasMultipleValues
public boolean isHasMultipleValues()
-
getParts
public List<ColumnPartSerde> getParts()
-
getSerializedSize
public long getSerializedSize() throws IOException
Description copied from interface:Serializer
Returns the number of bytes, that this Serializer will write to the output _channel_ (not smoosher) on aSerializer.writeTo(java.nio.channels.WritableByteChannel, org.apache.druid.java.util.common.io.smoosh.FileSmoosher)
call.- Specified by:
getSerializedSize
in interfaceSerializer
- Throws:
IOException
-
writeTo
public void writeTo(WritableByteChannel channel, FileSmoosher smoosher) throws IOException
Description copied from interface:Serializer
Writes serialized form of this object to the given channel. If parallel data streams are needed, they could be created with the provided smoosher.- Specified by:
writeTo
in interfaceSerializer
- Throws:
IOException
-
read
public ColumnHolder read(ByteBuffer buffer, ColumnConfig columnConfig, SmooshedFileMapper smooshedFiles)
-
-