Package org.apache.druid.segment
Class AutoTypeColumnSchema
- java.lang.Object
-
- org.apache.druid.data.input.impl.DimensionSchema
-
- org.apache.druid.segment.AutoTypeColumnSchema
-
public class AutoTypeColumnSchema extends DimensionSchema
CommonDimensionSchemafor ingestion of 'standard' Druid built-inColumnTypedatatypes. Automatically determines the most appropriate type for the given input data, able to produce columns of type:ColumnType.STRINGColumnType.STRING_ARRAYColumnType.LONGColumnType.LONG_ARRAYColumnType.DOUBLEColumnType.DOUBLE_ARRAYColumnType.NESTED_DATAand includes bitmap value set indexes. Input of mixed type will be stored asColumnType.NESTED_DATA.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.druid.data.input.impl.DimensionSchema
DimensionSchema.MultiValueHandling
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE-
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
Constructors Constructor Description AutoTypeColumnSchema(String name, ColumnType castToType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ColumnTypegetCastToType()ColumnTypegetColumnType()DimensionHandler<StructuredData,StructuredData,StructuredData>getDimensionHandler()StringgetTypeName()inthashCode()StringtoString()-
Methods inherited from class org.apache.druid.data.input.impl.DimensionSchema
getDefaultSchemaForBuiltInType, getMultiValueHandling, getName, hasBitmapIndex
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AutoTypeColumnSchema
public AutoTypeColumnSchema(String name, @Nullable ColumnType castToType)
-
-
Method Detail
-
getTypeName
public String getTypeName()
- Specified by:
getTypeNamein classDimensionSchema
-
getColumnType
public ColumnType getColumnType()
- Specified by:
getColumnTypein classDimensionSchema
-
getCastToType
@Nullable public ColumnType getCastToType()
-
getDimensionHandler
public DimensionHandler<StructuredData,StructuredData,StructuredData> getDimensionHandler()
- Overrides:
getDimensionHandlerin classDimensionSchema
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classDimensionSchema
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDimensionSchema
-
toString
public String toString()
- Overrides:
toStringin classDimensionSchema
-
-