Interface Propertied
- All Known Subinterfaces:
ColumnMetadata,TupleMetadata
- All Known Implementing Classes:
AbstractColumnMetadata,AbstractMapColumnMetadata,AbstractPropertied,DictColumnMetadata,DynamicColumn,MapColumnMetadata,PrimitiveColumnMetadata,ProjectedColumn,RepeatedListColumnMetadata,TupleSchema,VariantColumnMetadata
public interface Propertied
Interface for an object that defines properties. Used in conjunction with
PropertyAccessor.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringBase name for properties which Drill itself defines. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanProperty(String key) booleanbooleanProperty(String key, boolean defaultValue) booleanintintProperty(String key) intintProperty(String key, int defaultValue) static StringpluginPrefix(String pluginName) Drill-wide properties are of the form:
drill.
While plugin-specific properties are of the form:
drill.. Where "config prop name" is the field name in the plugin config. voidremoveProperty(String key) voidsetBooleanProperty(String key, boolean value) voidsetIntProperty(String key, int value) voidsetProperties(Map<String, String> properties) Sets schema properties if not null.voidsetProperty(String key, String value)
-
Field Details
-
DRILL_PROP_PREFIX
Base name for properties which Drill itself defines. Provides a separate "name space" from user-defined properties which should have some other prefix.- See Also:
-
-
Method Details
-
setProperties
Sets schema properties if not null.- Parameters:
properties- schema properties
-
hasProperties
boolean hasProperties() -
properties
-
property
-
property
-
setProperty
-
booleanProperty
-
booleanProperty
-
setBooleanProperty
-
intProperty
-
intProperty
-
setIntProperty
-
removeProperty
-
pluginPrefix
Drill-wide properties are of the form:
drill.
While plugin-specific properties are of the form:
drill.. Where "config prop name" is the field name in the plugin config. This function generates the "drill.
." prefix. - Parameters:
pluginName- name used in the "type" field of the plugin config- Returns:
- the "drill.
." prefix
-