Package org.apache.druid.segment.column
Interface TypeDescriptor
-
@Immutable public interface TypeDescriptorThis is a bridge betweenValueTypeandExprType, 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 useColumnTypeinstead ofExpressionType, which would allowExprTypeto be removed and this interface merged intoValueType(along with consolidation of several other interfaces, seeTypeSignaturejavadoc for additional details).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisArray()Value is an array of some otherTypeDescriptorbooleanisNumeric()Scalar numeric primitive values.booleanisPrimitive()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()
-
-