Class AbstractMapColumnMetadata
java.lang.Object
org.apache.drill.exec.record.metadata.AbstractPropertied
org.apache.drill.exec.record.metadata.AbstractColumnMetadata
org.apache.drill.exec.record.metadata.AbstractMapColumnMetadata
- All Implemented Interfaces:
ColumnMetadata,Propertied
- Direct Known Subclasses:
DictColumnMetadata,MapColumnMetadata
Describes a base column type for map, dict, repeated map and repeated dict. All 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
FieldsFields inherited from class org.apache.drill.exec.record.metadata.AbstractColumnMetadata
mode, name, precision, scale, typeFields 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_SUFFIXFields inherited from interface org.apache.drill.exec.record.metadata.Propertied
DRILL_PROP_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMapColumnMetadata(String name, TypeProtos.MinorType type, TypeProtos.DataMode mode, TupleSchema schema) Build a new map column from the field provided -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidbind(TupleMetadata parentTuple) intGet the expected width for a column.protected abstract StringReturns specific type string representation of the type that extends this class.booleanReport whether one column is equivalent to another.schema()Schema forTUPLEcolumns.Converts type metadata into string representation accepted by the table schema parser.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, isMap, isMultiList, isNullable, isScalar, isVariableWidth, isVariant, majorType, mode, name, precision, properties, scale, setDefaultValue, setExpectedElementCount, setExpectedWidth, setFormat, toString, type, valueFromString, valueToString, variantSchemaMethods inherited from class org.apache.drill.exec.record.metadata.AbstractPropertied
booleanProperty, booleanProperty, hashCode, hasProperties, intProperty, intProperty, property, property, removeProperty, setBooleanProperty, setIntProperty, setProperties, setPropertyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.drill.exec.record.metadata.ColumnMetadata
cloneEmpty, copyMethods inherited from interface org.apache.drill.exec.record.metadata.Propertied
booleanProperty, booleanProperty, hasProperties, intProperty, intProperty, property, property, removeProperty, setBooleanProperty, setIntProperty, setProperties, setProperty
-
Field Details
-
parentTuple
-
schema
-
-
Constructor Details
-
AbstractMapColumnMetadata
Build a new map column from the field provided- Parameters:
schema- materialized field description of the map
-
AbstractMapColumnMetadata
-
AbstractMapColumnMetadata
public AbstractMapColumnMetadata(String name, TypeProtos.MinorType type, TypeProtos.DataMode mode, TupleSchema schema)
-
-
Method Details
-
bind
- Specified by:
bindin interfaceColumnMetadata- Overrides:
bindin classAbstractColumnMetadata
-
structureType
-
tupleSchema
Description copied from interface:ColumnMetadataSchema forTUPLEcolumns.- Specified by:
tupleSchemain interfaceColumnMetadata- Overrides:
tupleSchemain classAbstractColumnMetadata- Returns:
- the tuple schema
-
expectedWidth
public int expectedWidth()Description copied from interface:ColumnMetadataGet the expected width for a column. This is the actual width for fixed- width columns, the specified width (defaulting to 50) for variable-width columns.- Specified by:
expectedWidthin interfaceColumnMetadata- Overrides:
expectedWidthin classAbstractColumnMetadata- Returns:
- the expected column width of the each data value. Does not include "overhead" space such as for the null-value vector or offset vector
-
parentTuple
-
schema
-
emptySchema
-
typeString
Description copied from interface:ColumnMetadataConverts type metadata into string representation accepted by the table schema parser.- Specified by:
typeStringin interfaceColumnMetadata- Specified by:
typeStringin classAbstractColumnMetadata- Returns:
- type metadata string representation
-
internalTypeString
Returns specific type string representation of the type that extends this class.- Returns:
- type string representation
-
appendContents
- Overrides:
appendContentsin classAbstractColumnMetadata
-
isEquivalent
Description copied from interface:ColumnMetadataReport whether one column is equivalent to another. Columns are equivalent if they have the same name, type and structure (ignoring internal structure such as properties.)- Specified by:
isEquivalentin interfaceColumnMetadata- Overrides:
isEquivalentin classAbstractColumnMetadata
-