Class RepeatedListColumnMetadata
java.lang.Object
org.apache.drill.exec.record.metadata.AbstractPropertied
org.apache.drill.exec.record.metadata.AbstractColumnMetadata
org.apache.drill.exec.record.metadata.RepeatedListColumnMetadata
- 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
FieldsModifier and TypeFieldDescriptionstatic final intIndicates we don't know the number of dimensions.Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidSchema of inner dimension forMULTI_ARRAYcolumns.voidchildSchema(ColumnMetadata childMetadata) Create an empty version of this column.copy()intbooleanReport whether one column is equivalent to another.booleanDetermine if the schema represents a column with a LIST type with UNION elements.schema()Converts type metadata into string representation accepted by the table schema parser.Methods inherited from class org.apache.drill.exec.record.metadata.AbstractColumnMetadata
bind, columnString, createColumnMetadata, dateTimeFormatter, decodeDefaultValue, defaultValue, equals, equalsWithProperties, equalsWithProperties, escapeSpecialSymbols, expectedElementCount, expectedWidth, format, isArray, isDict, isDynamic, isMap, isNullable, isScalar, isVariableWidth, isVariant, majorType, mode, name, precision, properties, scale, setDefaultValue, setExpectedElementCount, setExpectedWidth, setFormat, toString, tupleSchema, 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.Propertied
booleanProperty, booleanProperty, hasProperties, intProperty, intProperty, property, property, removeProperty, setBooleanProperty, setIntProperty, setProperties, setProperty
-
Field Details
-
UNKNOWN_DIMENSIONS
public static final int UNKNOWN_DIMENSIONSIndicates we don't know the number of dimensions.- See Also:
-
-
Constructor Details
-
RepeatedListColumnMetadata
-
RepeatedListColumnMetadata
-
-
Method Details
-
childSchema
-
structureType
-
isMultiList
public boolean isMultiList()Description copied from interface:ColumnMetadataDetermine if the schema represents a column with a LIST type with UNION elements. (Lists can be of a single type (with nullable elements) or can be of unions.)- Specified by:
isMultiListin interfaceColumnMetadata- Overrides:
isMultiListin classAbstractColumnMetadata- Returns:
- true if the column is of type LIST of UNIONs
-
schema
-
emptySchema
-
cloneEmpty
Description copied from interface:ColumnMetadataCreate 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
-
copy
-
childSchema
Description copied from interface:ColumnMetadataSchema of inner dimension forMULTI_ARRAYcolumns. If an array is 3D, the outer column represents all 3 dimensions.outer.childSchema()gives anotherMULTI_ARRAYfor the inner 2D array.outer.childSchema().childSchema()gives a column of some other type (but repeated) for the 1D array.Sorry for the mess, but it is how the code works and we are not in a position to revisit data type fundamentals.
- Specified by:
childSchemain interfaceColumnMetadata- Overrides:
childSchemain classAbstractColumnMetadata- Returns:
- the description of the (n-1) st dimension.
-
dimensions
public int dimensions()- Specified by:
dimensionsin interfaceColumnMetadata- Overrides:
dimensionsin classAbstractColumnMetadata
-
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
-
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
-