public interface MetadataManager
This class provides a generalized way of handling such extended columns. That is, this handles metadata for columns defined by the scan or file; columns defined by the table (the actual data metadata) is handled elsewhere.
Objects of this interface are driven by the projection processing framework which provides a vector cache from which to obtain materialized columns. The implementation must provide a projection parser to pick out the columns which this object handles.
A better name might be ImplicitMetadataManager to signify that this is about metadata other than table columns.
Modifier and Type | Method and Description |
---|---|
void |
bind(ResultVectorCache vectorCache) |
void |
close()
Event indicating the end of a scan.
|
void |
define()
Define (materialize) the columns which this manager
represents.
|
void |
endFile()
Event indicating the end of a file (or other data source.)
|
void |
load(int rowCount)
Load data into the custom columns, if needed (such as for
null or implicit columns.)
|
ScanLevelProjection.ScanProjectionParser |
projectionParser() |
ReaderLevelProjection.ReaderProjectionResolver |
resolver() |
void bind(ResultVectorCache vectorCache)
ScanLevelProjection.ScanProjectionParser projectionParser()
ReaderLevelProjection.ReaderProjectionResolver resolver()
void define()
void load(int rowCount)
rowCount
- number of rows read into a batch.void endFile()
void close()
Copyright © 1970 The Apache Software Foundation. All rights reserved.