Package org.apache.druid.catalog.model
Class ModelProperties.ObjectPropertyDefn<T>
- java.lang.Object
-
- org.apache.druid.catalog.model.ModelProperties.BasePropertyDefn<T>
-
- org.apache.druid.catalog.model.ModelProperties.ObjectPropertyDefn<T>
-
- All Implemented Interfaces:
ModelProperties.PropertyDefn<T>
- Enclosing interface:
- ModelProperties
public static class ModelProperties.ObjectPropertyDefn<T> extends ModelProperties.BasePropertyDefn<T>
-
-
Field Summary
Fields Modifier and Type Field Description Class<T>valueClass-
Fields inherited from class org.apache.druid.catalog.model.ModelProperties.BasePropertyDefn
name
-
-
Constructor Summary
Constructors Constructor Description ObjectPropertyDefn(String name, Class<T> valueClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tdecode(Object value, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)Convert the value from the deserialized JSON format to the type required by this field data type.StringtypeName()The name of the type of this property to be displayed in error messages.voidvalidate(Object value, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)Validate that the given value is valid for this property.-
Methods inherited from class org.apache.druid.catalog.model.ModelProperties.BasePropertyDefn
merge, name, toString
-
-
-
-
Method Detail
-
typeName
public String typeName()
Description copied from interface:ModelProperties.PropertyDefnThe name of the type of this property to be displayed in error messages.
-
decode
public T decode(Object value, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
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.
-
validate
public void validate(Object value, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
Validate that the given value is valid for this property. By default, does a value conversion and discards the value.
-
-