public abstract class MetadataColumn extends ResolvedColumn implements ConstantColumnLoader.ConstantColumnSpec
Constructor and Description |
---|
MetadataColumn(String name,
TypeProtos.MajorType type,
String value,
VectorSource source,
int sourceIndex) |
Modifier and Type | Method and Description |
---|---|
String |
name()
The name of the column as it appears in the output
row (record batch.)
|
abstract MetadataColumn |
resolve(FileMetadata fileInfo,
VectorSource source,
int sourceIndex) |
MaterializedField |
schema()
Return the type of this column.
|
String |
toString() |
String |
value() |
metadata, project, source, sourceIndex
public MetadataColumn(String name, TypeProtos.MajorType type, String value, VectorSource source, int sourceIndex)
public MaterializedField schema()
ResolvedColumn
schema
in interface ConstantColumnLoader.ConstantColumnSpec
schema
in class ResolvedColumn
public String value()
value
in interface ConstantColumnLoader.ConstantColumnSpec
public String name()
ColumnProjection
name
in interface ColumnProjection
name
in interface ConstantColumnLoader.ConstantColumnSpec
public abstract MetadataColumn resolve(FileMetadata fileInfo, VectorSource source, int sourceIndex)
Copyright © 1970 The Apache Software Foundation. All rights reserved.