Class DictColumnMetadata
java.lang.Object
org.apache.drill.exec.record.metadata.AbstractPropertied
org.apache.drill.exec.record.metadata.AbstractColumnMetadata
org.apache.drill.exec.record.metadata.AbstractMapColumnMetadata
org.apache.drill.exec.record.metadata.DictColumnMetadata
- All Implemented Interfaces:
ColumnMetadata
,Propertied
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.exec.record.metadata.ColumnMetadata
ColumnMetadata.StructureType
-
Field Summary
Fields inherited from class org.apache.drill.exec.record.metadata.AbstractMapColumnMetadata
parentTuple, schema
Fields inherited from class org.apache.drill.exec.record.metadata.AbstractColumnMetadata
mode, name, precision, scale, type
Fields inherited from interface org.apache.drill.exec.record.metadata.ColumnMetadata
BLANK_AS_NULL, BLANK_AS_PROP, BLANK_AS_ZERO, DEFAULT_ARRAY_SIZE, DEFAULT_VALUE_PROP, EXCLUDE_FROM_WILDCARD, EXPECTED_CARDINALITY_PROP, EXPECTED_WIDTH_PROP, FORMAT_PROP, IMPLICIT_COL_TYPE, IMPLICIT_FILENAME, IMPLICIT_FILEPATH, IMPLICIT_FQN, IMPLICIT_PARTITION_PREFIX, IMPLICIT_SUFFIX
Fields inherited from interface org.apache.drill.exec.record.metadata.Propertied
DRILL_PROP_PREFIX
-
Constructor Summary
ConstructorDescriptionDictColumnMetadata
(String name, TypeProtos.DataMode mode) DictColumnMetadata
(MaterializedField schema) Build a new dict column from the field provided -
Method Summary
Methods inherited from class org.apache.drill.exec.record.metadata.AbstractMapColumnMetadata
appendContents, bind, emptySchema, expectedWidth, isEquivalent, parentTuple, schema, tupleSchema, typeString
Methods inherited from class org.apache.drill.exec.record.metadata.AbstractColumnMetadata
childSchema, columnString, createColumnMetadata, dateTimeFormatter, decodeDefaultValue, defaultValue, dimensions, equals, equalsWithProperties, equalsWithProperties, escapeSpecialSymbols, expectedElementCount, format, isArray, isDynamic, isMap, isMultiList, isNullable, isScalar, isVariableWidth, isVariant, majorType, mode, name, precision, properties, scale, setDefaultValue, setExpectedElementCount, setExpectedWidth, setFormat, toString, type, valueFromString, valueToString, variantSchema
Methods inherited from class org.apache.drill.exec.record.metadata.AbstractPropertied
booleanProperty, booleanProperty, hashCode, hasProperties, intProperty, intProperty, property, property, removeProperty, setBooleanProperty, setIntProperty, setProperties, setProperty
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.drill.exec.record.metadata.Propertied
booleanProperty, booleanProperty, hasProperties, intProperty, intProperty, property, property, removeProperty, setBooleanProperty, setIntProperty, setProperties, setProperty
-
Constructor Details
-
DictColumnMetadata
Build a new dict column from the field provided- Parameters:
schema
- materialized field description of the map
-
DictColumnMetadata
-
DictColumnMetadata
-
-
Method Details
-
keyColumnMetadata
-
valueColumnMetadata
-
copy
-
cloneEmpty
Description copied from interface:ColumnMetadata
Create an empty version of this column. If the column is a scalar, produces a simple copy. If a map, produces a clone without child columns.- Returns:
- empty clone of this column
-
isDict
public boolean isDict()- Specified by:
isDict
in interfaceColumnMetadata
- Overrides:
isDict
in classAbstractColumnMetadata
-
internalTypeString
Description copied from class:AbstractMapColumnMetadata
Returns specific type string representation of the type that extends this class.- Specified by:
internalTypeString
in classAbstractMapColumnMetadata
- Returns:
- type string representation
-
structureType
- Specified by:
structureType
in interfaceColumnMetadata
- Overrides:
structureType
in classAbstractMapColumnMetadata
-