Package org.apache.druid.segment.column
Interface TypeDescriptor
@Immutable
public interface TypeDescriptor
This is a bridge between
ValueType and ExprType, so that they can both
be used with TypeSignature.
This interface assists in classifying the specific enum values that implement this interface into the current type
families: 'primitives', 'arrays', and 'complex' types through isPrimitive() and isArray()
At some point we should probably consider reworking this into a 'TypeFamily' enum that maps these high level families
to specific types.
This interface can potentially be removed if the expression processing system is updated to use ColumnType
instead of ExpressionType, which would allow
ExprType to be removed and this interface merged into ValueType (along
with consolidation of several other interfaces, see TypeSignature javadoc for additional details).-
Method Summary
Modifier and TypeMethodDescriptionbooleanisArray()Value is an array of some otherTypeDescriptorbooleanScalar numeric primitive values.booleanScalar numeric and string values.
-
Method Details
-
isNumeric
boolean isNumeric()Scalar numeric primitive values.- See Also:
-
isPrimitive
boolean isPrimitive()Scalar numeric and string values. This does not currently include complex types.- See Also:
-
isArray
boolean isArray()Value is an array of some otherTypeDescriptor- See Also:
-