Class MetadataColumn
java.lang.Object
org.apache.drill.exec.physical.impl.scan.project.ResolvedColumn
org.apache.drill.exec.physical.impl.scan.file.MetadataColumn
- All Implemented Interfaces:
ColumnProjection,ConstantColumnLoader.ConstantColumnSpec
- Direct Known Subclasses:
FileMetadataColumn,PartitionColumn
public abstract class MetadataColumn
extends ResolvedColumn
implements ConstantColumnLoader.ConstantColumnSpec
Resolved value for a metadata column (implicit file or partition column.) Resolution
here means identifying a value for the column.
-
Constructor Summary
ConstructorsConstructorDescriptionMetadataColumn(String name, TypeProtos.MajorType type, String value, VectorSource source, int sourceIndex) -
Method Summary
Modifier and TypeMethodDescriptionname()The name of the column as it appears in the output row (record batch.)abstract MetadataColumnresolve(FileMetadata fileInfo, VectorSource source, int sourceIndex) schema()Return the type of this column.toString()value()Methods inherited from class org.apache.drill.exec.physical.impl.scan.project.ResolvedColumn
metadata, project, source, sourceIndex
-
Constructor Details
-
MetadataColumn
public MetadataColumn(String name, TypeProtos.MajorType type, String value, VectorSource source, int sourceIndex)
-
-
Method Details
-
schema
Description copied from class:ResolvedColumnReturn the type of this column. Used primarily by the schema smoothing mechanism.- Specified by:
schemain interfaceConstantColumnLoader.ConstantColumnSpec- Specified by:
schemain classResolvedColumn- Returns:
- the MaterializedField representation of this column
-
value
- Specified by:
valuein interfaceConstantColumnLoader.ConstantColumnSpec
-
name
Description copied from interface:ColumnProjectionThe name of the column as it appears in the output row (record batch.)- Specified by:
namein interfaceColumnProjection- Specified by:
namein interfaceConstantColumnLoader.ConstantColumnSpec- Returns:
- the output column name
-
resolve
-
toString
-