Class MapColumnMetadata
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.MapColumnMetadata
- All Implemented Interfaces:
ColumnMetadata
,Propertied
Describes a map and repeated map. Both are tuples that have a tuple
schema as part of the column definition.
-
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
ConstructorDescriptionMapColumnMetadata
(String name, TypeProtos.DataMode mode, TupleSchema tupleSchema) MapColumnMetadata
(MaterializedField schema) Build a new map 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, structureType, 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, isDict, isDynamic, 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
-
MapColumnMetadata
Build a new map column from the field provided- Parameters:
schema
- materialized field description of the map
-
MapColumnMetadata
-
MapColumnMetadata
-
-
Method Details
-
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
-
isMap
public boolean isMap()- Specified by:
isMap
in interfaceColumnMetadata
- Overrides:
isMap
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
-