Class AbstractPropertied
java.lang.Object
org.apache.drill.exec.record.metadata.AbstractPropertied
- All Implemented Interfaces:
Propertied
- Direct Known Subclasses:
AbstractColumnMetadata
,TupleSchema
Base class for an object with properties. Defers property map creation
until needed, since most instances may not need properties.
-
Field Summary
Fields inherited from interface org.apache.drill.exec.record.metadata.Propertied
DRILL_PROP_PREFIX
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
-
Method Summary
Modifier and TypeMethodDescriptionboolean
booleanProperty
(String key) boolean
booleanProperty
(String key, boolean defaultValue) boolean
int
hashCode()
boolean
int
intProperty
(String key) int
intProperty
(String key, int defaultValue) 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)
-
Constructor Details
-
AbstractPropertied
protected AbstractPropertied() -
AbstractPropertied
-
-
Method Details
-
hasProperties
public boolean hasProperties()- Specified by:
hasProperties
in interfacePropertied
-
setProperties
Description copied from interface:Propertied
Sets schema properties if not null.- Specified by:
setProperties
in interfacePropertied
- Parameters:
properties
- schema properties
-
properties
- Specified by:
properties
in interfacePropertied
-
property
- Specified by:
property
in interfacePropertied
-
property
- Specified by:
property
in interfacePropertied
-
setProperty
- Specified by:
setProperty
in interfacePropertied
-
booleanProperty
- Specified by:
booleanProperty
in interfacePropertied
-
booleanProperty
- Specified by:
booleanProperty
in interfacePropertied
-
setBooleanProperty
- Specified by:
setBooleanProperty
in interfacePropertied
-
intProperty
- Specified by:
intProperty
in interfacePropertied
-
intProperty
- Specified by:
intProperty
in interfacePropertied
-
setIntProperty
- Specified by:
setIntProperty
in interfacePropertied
-
removeProperty
- Specified by:
removeProperty
in interfacePropertied
-
equals
-
hashCode
public int hashCode()
-