Package org.apache.druid.segment.column
Interface TypeDescriptor
-
public interface TypeDescriptor
This is a bridge betweenValueType
andExprType
, so that they can both be used withTypeSignature
. This interface assists in classifying the specific enum values that implement this interface into the current type families: 'primitives', 'arrays', and 'complex' types throughisPrimitive()
andisArray()
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 useColumnType
instead ofExpressionType
, which would allowExprType
to be removed and this interface merged intoValueType
(along with consolidation of several other interfaces, seeTypeSignature
javadoc for additional details).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isArray()
Value is an array of some otherTypeDescriptor
boolean
isNumeric()
Scalar numeric primitive values.boolean
isPrimitive()
Scalar numeric and string values.
-
-
-
Method Detail
-
isNumeric
boolean isNumeric()
Scalar numeric primitive values.- See Also:
ValueType.isNumeric()
,ExprType.isNumeric()
-
isPrimitive
boolean isPrimitive()
Scalar numeric and string values. This does not currently include complex types.- See Also:
ValueType.isPrimitive()
,ExprType.isPrimitive()
-
isArray
boolean isArray()
Value is an array of some otherTypeDescriptor
- See Also:
ValueType.isArray()
,ExprType.isArray()
-
-