Package org.apache.druid.segment.serde
Class NestedCommonFormatColumnPartSerde
java.lang.Object
org.apache.druid.segment.serde.NestedCommonFormatColumnPartSerde
- All Implemented Interfaces:
ColumnPartSerde
ColumnPartSerde shared by all NestedCommonFormatColumn. The logicalType defines the native
Druid type of the column to use for things like ColumnCapabilities and
hasNulls if any null values are present. If isVariantType is set, the column internally is
composed of a mix of types, this is currently only used by VariantColumnAndIndexSupplier.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOverridesNestedCommonFormatColumnFormatSpecso thatNestedCommonFormatColumnPartSerde.FormatSpec.getBitmapEncoding()participates in serde so that it can store the complete object in the column metadatastatic classNested classes/interfaces inherited from interface org.apache.druid.segment.serde.ColumnPartSerde
ColumnPartSerde.Deserializer -
Method Summary
Modifier and TypeMethodDescriptioncreateDeserializer(ColumnType logicalType, boolean hasNulls, boolean isVariantType, boolean enforceLogicalType, ByteOrder byteOrder, BitmapSerdeFactory bitmapSerdeFactory, NestedCommonFormatColumnPartSerde.FormatSpec columnFormatSpec, Byte pathParserVersion) booleanbooleanReturns a Deserializer to read a column from a segment.byteinthashCode()booleanbooleanstatic ByteBufferloadInternalFile(SegmentFileMapper fileMapper, String fileNameBase, String internalFileName)
-
Method Details
-
serializerBuilder
-
loadInternalFile
public static ByteBuffer loadInternalFile(SegmentFileMapper 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, @Nullable NestedCommonFormatColumnPartSerde.FormatSpec columnFormatSpec, @Nullable Byte pathParserVersion) -
getSerializer
- Specified by:
getSerializerin interfaceColumnPartSerde
-
getDeserializer
Description copied from interface:ColumnPartSerdeReturns a Deserializer to read a column from a segment.- Specified by:
getDeserializerin interfaceColumnPartSerde
-
getLogicalType
-
isHasNulls
public boolean isHasNulls() -
isVariantType
public boolean isVariantType() -
enforceLogicalType
public boolean enforceLogicalType() -
getByteOrder
-
getBitmapSerdeFactory
-
getColumnFormatSpec
-
getPathParserVersion
public byte getPathParserVersion() -
equals
-
hashCode
public int hashCode()
-