Package org.apache.druid.segment.column
Interface ColumnFormat
- All Known Implementing Classes:
CapabilitiesBasedFormat,NestedCommonFormatColumn.Format,NestedDataComplexTypeSerde.NestedColumnFormatV4
public interface ColumnFormat
Abstraction for the physical storage components of a column, allowing us to decouple a columns logical type from
how it is actually stored in a segment. Also provides methods to create
DimensionHandler and
DimensionSchema for creating new columns with identical physical storage components.-
Method Summary
Modifier and TypeMethodDescriptiongetColumnHandler(String columnName) Create aDimensionHandlerwhich can be used to create indexers and mergers to produce a new column with this formatgetColumnSchema(String columnName) Creates aDimensionSchemawhich can be used to create new segment schemas for ingestion jobs to create columns with this formatmerge(ColumnFormat otherFormat) Create a newColumnFormatfrom this format and another format, merging implementation specific physical storage details as appropriate to determine what the new format should be.Convert physical column details to genericColumnCapabilitiesfor query time analysis
-
Method Details
-
getLogicalType
ColumnType getLogicalType() -
toColumnCapabilities
ColumnCapabilities toColumnCapabilities()Convert physical column details to genericColumnCapabilitiesfor query time analysis -
getColumnHandler
Create aDimensionHandlerwhich can be used to create indexers and mergers to produce a new column with this format -
getColumnSchema
Creates aDimensionSchemawhich can be used to create new segment schemas for ingestion jobs to create columns with this format -
merge
Create a newColumnFormatfrom this format and another format, merging implementation specific physical storage details as appropriate to determine what the new format should be.
-