Package org.apache.druid.data.input.impl
Class StringDimensionSchema
java.lang.Object
org.apache.druid.data.input.impl.DimensionSchema
org.apache.druid.data.input.impl.StringDimensionSchema
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.druid.data.input.impl.DimensionSchema
DimensionSchema.MultiValueHandling -
Field Summary
Fields inherited from class org.apache.druid.data.input.impl.DimensionSchema
DOUBLE_TYPE_NAME, FLOAT_TYPE_NAME, LONG_TYPE_NAME, SPATIAL_TYPE_NAME, STRING_TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionStringDimensionSchema(String name) StringDimensionSchema(String name, DimensionSchema.MultiValueHandling multiValueHandling, Boolean createBitmapIndex) StringDimensionSchema(String name, DimensionSchema.MultiValueHandling multiValueHandling, Boolean createBitmapIndex, StringColumnFormatSpec columnFormatSpec) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if theDimensionHandler.makeIndexer()of this schema can produce multi-valuedColumnType.STRINGcolumns.static StringDimensionSchemabooleangetEffectiveSchema(IndexSpec indexSpec) Computes the 'effective'DimensionSchema, allowing columns which provide mechanisms for customizing storage format to fill in values from the segment levelIndexSpecdefaults.inthashCode()Methods inherited from class org.apache.druid.data.input.impl.DimensionSchema
getDefaultSchemaForBuiltInType, getMultiValueHandling, getName, hasBitmapIndex, toString
-
Constructor Details
-
StringDimensionSchema
public StringDimensionSchema(String name, DimensionSchema.MultiValueHandling multiValueHandling, Boolean createBitmapIndex, @Nullable StringColumnFormatSpec columnFormatSpec) -
StringDimensionSchema
public StringDimensionSchema(String name, DimensionSchema.MultiValueHandling multiValueHandling, Boolean createBitmapIndex) -
StringDimensionSchema
-
-
Method Details
-
create
-
getColumnFormatSpec
-
getEffectiveSchema
Description copied from class:DimensionSchemaComputes the 'effective'DimensionSchema, allowing columns which provide mechanisms for customizing storage format to fill in values from the segment levelIndexSpecdefaults. This is useful for comparing the operator explicitly defined schema with the 'effective' schema that was written to the segments for things like comparing compaction state.- Overrides:
getEffectiveSchemain classDimensionSchema
-
getTypeName
- Specified by:
getTypeNamein classDimensionSchema
-
getColumnType
- Specified by:
getColumnTypein classDimensionSchema
-
canBeMultiValued
public boolean canBeMultiValued()Description copied from class:DimensionSchemaReturns true if theDimensionHandler.makeIndexer()of this schema can produce multi-valuedColumnType.STRINGcolumns. This method is used by MSQ compaction to determine if it needs to download the segments to check if any are actually multi-valued.- Overrides:
canBeMultiValuedin classDimensionSchema
-
getDimensionHandler
- Overrides:
getDimensionHandlerin classDimensionSchema
-
equals
- Overrides:
equalsin classDimensionSchema
-
hashCode
public int hashCode()- Overrides:
hashCodein classDimensionSchema
-