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 classColumnDescriptor.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.Builderbuilder()List<ColumnPartSerde>getParts()longgetSerializedSize()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.ValueTypegetValueType()booleanisHasMultipleValues()ColumnHolderread(ByteBuffer buffer, ColumnConfig columnConfig, SmooshedFileMapper smooshedFiles)voidwriteTo(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 IOExceptionDescription copied from interface:SerializerReturns 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:
getSerializedSizein interfaceSerializer- Throws:
IOException
-
writeTo
public void writeTo(WritableByteChannel channel, FileSmoosher smoosher) throws IOException
Description copied from interface:SerializerWrites 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:
writeToin interfaceSerializer- Throws:
IOException
-
read
public ColumnHolder read(ByteBuffer buffer, ColumnConfig columnConfig, SmooshedFileMapper smooshedFiles)
-
-