Package org.apache.druid.segment.column
Class CapabilitiesBasedFormat
java.lang.Object
org.apache.druid.segment.column.CapabilitiesBasedFormat
- All Implemented Interfaces:
ColumnFormat
Legacy fallback column format used by columns which do not directly implement
ColumnFormat. This should be
avoided if possible in favor of implementing a ColumnFormat that is specific to the column type and can
accurately capture the physical storage details and have fine-grained control over how merge(ColumnFormat),
getColumnSchema(String) and getColumnHandler(String) behave.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CapabilitiesBasedFormatforColumnIndexer(ColumnCapabilities capabilities) getColumnHandler(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
-
Field Details
-
DIMENSION_CAPABILITY_MERGE_LOGIC
-
-
Constructor Details
-
CapabilitiesBasedFormat
-
-
Method Details
-
forColumnIndexer
-
getColumnHandler
Description copied from interface:ColumnFormatCreate aDimensionHandlerwhich can be used to create indexers and mergers to produce a new column with this format- Specified by:
getColumnHandlerin interfaceColumnFormat
-
getColumnSchema
Description copied from interface:ColumnFormatCreates aDimensionSchemawhich can be used to create new segment schemas for ingestion jobs to create columns with this format- Specified by:
getColumnSchemain interfaceColumnFormat
-
merge
Description copied from interface:ColumnFormatCreate a newColumnFormatfrom this format and another format, merging implementation specific physical storage details as appropriate to determine what the new format should be.- Specified by:
mergein interfaceColumnFormat
-
getLogicalType
- Specified by:
getLogicalTypein interfaceColumnFormat
-
toColumnCapabilities
Description copied from interface:ColumnFormatConvert physical column details to genericColumnCapabilitiesfor query time analysis- Specified by:
toColumnCapabilitiesin interfaceColumnFormat
-