Package org.apache.druid.catalog.model
Class ModelProperties.BasePropertyDefn<T>
- java.lang.Object
-
- org.apache.druid.catalog.model.ModelProperties.BasePropertyDefn<T>
-
- All Implemented Interfaces:
ModelProperties.PropertyDefn<T>
- Direct Known Subclasses:
ModelProperties.ObjectPropertyDefn,ModelProperties.SimplePropertyDefn,ModelProperties.TypeRefPropertyDefn
- Enclosing interface:
- ModelProperties
public abstract static class ModelProperties.BasePropertyDefn<T> extends Object implements ModelProperties.PropertyDefn<T>
-
-
Constructor Summary
Constructors Constructor Description BasePropertyDefn(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectmerge(Object existing, Object update)Merge a property value with an update.Stringname()Name of the property as visible to catalog users.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.druid.catalog.model.ModelProperties.PropertyDefn
decode, typeName, validate
-
-
-
-
Field Detail
-
name
protected final String name
-
-
Constructor Detail
-
BasePropertyDefn
public BasePropertyDefn(String name)
-
-
Method Detail
-
name
public String name()
Description copied from interface:ModelProperties.PropertyDefnName of the property as visible to catalog users. All properties are top-level within thepropertiesobject within a catalog spec.- Specified by:
namein interfaceModelProperties.PropertyDefn<T>
-
merge
public Object merge(Object existing, Object update)
Description copied from interface:ModelProperties.PropertyDefnMerge a property value with an update. Validation of the update is typically done later, once all the updates are applied. The most typical merge is just: use the new value if provided, else the old value.- Specified by:
mergein interfaceModelProperties.PropertyDefn<T>
-
-