Package org.apache.druid.segment.serde
Class NestedCommonFormatColumnPartSerde
- java.lang.Object
-
- org.apache.druid.segment.serde.NestedCommonFormatColumnPartSerde
-
- All Implemented Interfaces:
ColumnPartSerde
public class NestedCommonFormatColumnPartSerde extends Object implements ColumnPartSerde
ColumnPartSerdeshared by allNestedCommonFormatColumn. ThelogicalTypedefines the native Druid type of the column to use for things likeColumnCapabilitiesandhasNullsif any null values are present. IfisVariantTypeis set, the column internally is composed of a mix of types, this is currently only used byVariantColumnAndIndexSupplier.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNestedCommonFormatColumnPartSerde.SerializerBuilder-
Nested classes/interfaces inherited from interface org.apache.druid.segment.serde.ColumnPartSerde
ColumnPartSerde.Deserializer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NestedCommonFormatColumnPartSerdecreateDeserializer(ColumnType logicalType, boolean hasNulls, boolean isVariantType, boolean enforceLogicalType, ByteOrder byteOrder, BitmapSerdeFactory bitmapSerdeFactory)booleanenforceLogicalType()BitmapSerdeFactorygetBitmapSerdeFactory()ByteOrdergetByteOrder()ColumnPartSerde.DeserializergetDeserializer()Returns a Deserializer to read a column from a segment.ColumnTypegetLogicalType()SerializergetSerializer()booleanisHasNulls()booleanisVariantType()static ByteBufferloadInternalFile(SmooshedFileMapper fileMapper, String fileNameBase, String internalFileName)static NestedCommonFormatColumnPartSerde.SerializerBuilderserializerBuilder()
-
-
-
Method Detail
-
serializerBuilder
public static NestedCommonFormatColumnPartSerde.SerializerBuilder serializerBuilder()
-
loadInternalFile
public static ByteBuffer loadInternalFile(SmooshedFileMapper fileMapper, String fileNameBase, String internalFileName) throws IOException
- Throws:
IOException
-
createDeserializer
public static NestedCommonFormatColumnPartSerde createDeserializer(ColumnType logicalType, boolean hasNulls, boolean isVariantType, boolean enforceLogicalType, ByteOrder byteOrder, BitmapSerdeFactory bitmapSerdeFactory)
-
getSerializer
@Nullable public Serializer getSerializer()
- Specified by:
getSerializerin interfaceColumnPartSerde
-
getDeserializer
public ColumnPartSerde.Deserializer getDeserializer()
Description copied from interface:ColumnPartSerdeReturns a Deserializer to read a column from a segment.- Specified by:
getDeserializerin interfaceColumnPartSerde
-
getLogicalType
public ColumnType getLogicalType()
-
isHasNulls
public boolean isHasNulls()
-
isVariantType
public boolean isVariantType()
-
enforceLogicalType
public boolean enforceLogicalType()
-
getByteOrder
public ByteOrder getByteOrder()
-
getBitmapSerdeFactory
public BitmapSerdeFactory getBitmapSerdeFactory()
-
-