Package org.apache.druid.catalog.model
Class ModelProperties.TypeRefPropertyDefn<T>
java.lang.Object
org.apache.druid.catalog.model.ModelProperties.BasePropertyDefn<T>
org.apache.druid.catalog.model.ModelProperties.TypeRefPropertyDefn<T>
- All Implemented Interfaces:
ModelProperties.PropertyDefn<T>
- Direct Known Subclasses:
DatasourceDefn.ProjectionsDefn,ModelProperties.ListPropertyDefn
- Enclosing interface:
- ModelProperties
public static class ModelProperties.TypeRefPropertyDefn<T>
extends ModelProperties.BasePropertyDefn<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Stringfinal com.fasterxml.jackson.core.type.TypeReference<T>Fields inherited from class org.apache.druid.catalog.model.ModelProperties.BasePropertyDefn
name -
Constructor Summary
ConstructorsConstructorDescriptionTypeRefPropertyDefn(String name, String typeName, com.fasterxml.jackson.core.type.TypeReference<T> valueType) -
Method Summary
Modifier and TypeMethodDescriptionDecodes a JSON-encoded value into a corresponding Java value.typeName()The name of the type of this property to be displayed in error messages.voidConvert the value from the deserialized JSON format to the type required by this field data type.Methods inherited from class org.apache.druid.catalog.model.ModelProperties.BasePropertyDefn
merge, name, toString
-
Field Details
-
typeName
-
valueType
-
-
Constructor Details
-
TypeRefPropertyDefn
-
-
Method Details
-
typeName
Description copied from interface:ModelProperties.PropertyDefnThe name of the type of this property to be displayed in error messages. -
decode
Description copied from interface:ModelProperties.PropertyDefnDecodes a JSON-encoded value into a corresponding Java value. -
validate
Convert the value from the deserialized JSON format to the type required by this field data type. Also used to decode values from SQL parameters. As a side effect, verifies that the value is of the correct type.
-