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
Modifier and TypeFieldDescriptionstatic final String
Base name for properties which Drill itself defines. -
Method Summary
Modifier and TypeMethodDescriptionboolean
booleanProperty
(String key) boolean
booleanProperty
(String key, boolean defaultValue) boolean
int
intProperty
(String key) int
intProperty
(String key, int defaultValue) static String
pluginPrefix
(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. void
removeProperty
(String key) void
setBooleanProperty
(String key, boolean value) void
setIntProperty
(String key, int value) void
setProperties
(Map<String, String> properties) Sets schema properties if not null.void
setProperty
(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
-