Package org.apache.druid.catalog.model
Class ModelProperties.GranularityPropertyDefn
- java.lang.Object
-
- org.apache.druid.catalog.model.ModelProperties.BasePropertyDefn<T>
-
- org.apache.druid.catalog.model.ModelProperties.SimplePropertyDefn<String>
-
- org.apache.druid.catalog.model.ModelProperties.StringPropertyDefn
-
- org.apache.druid.catalog.model.ModelProperties.GranularityPropertyDefn
-
- All Implemented Interfaces:
ModelProperties.PropertyDefn<String>
- Direct Known Subclasses:
DatasourceDefn.SegmentGranularityFieldDefn
- Enclosing interface:
- ModelProperties
public static class ModelProperties.GranularityPropertyDefn extends ModelProperties.StringPropertyDefn
-
-
Field Summary
-
Fields inherited from class org.apache.druid.catalog.model.ModelProperties.SimplePropertyDefn
valueClass
-
Fields inherited from class org.apache.druid.catalog.model.ModelProperties.BasePropertyDefn
name
-
-
Constructor Summary
Constructors Constructor Description GranularityPropertyDefn(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.SimplePropertyDefn
decode, decodeJson, typeName
-
Methods inherited from class org.apache.druid.catalog.model.ModelProperties.BasePropertyDefn
merge, name, toString
-
-
-
-
Constructor Detail
-
GranularityPropertyDefn
public GranularityPropertyDefn(String name)
-
-
Method Detail
-
validate
public void validate(Object value, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
Description copied from class:ModelProperties.SimplePropertyDefnValidate that the given value is valid for this property. By default, does a value conversion and discards the value.- Specified by:
validatein interfaceModelProperties.PropertyDefn<String>- Overrides:
validatein classModelProperties.SimplePropertyDefn<String>
-
-