Class NullColumnBuilder
java.lang.Object
org.apache.drill.exec.physical.impl.scan.project.NullColumnBuilder
- All Implemented Interfaces:
VectorSource
Manages null columns by creating a null column loader for each
set of non-empty null columns. This class acts as a scan-wide
facade around the per-schema null column loader.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<NullColumnLoader.NullColumnSpec>
Creates null columns if needed.protected TupleMetadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(String name, TypeProtos.MajorType type) add
(ColumnMetadata colDefn) void
build
(ResultVectorCache vectorCache) void
close()
boolean
void
load
(int rowCount) output()
vector
(int index)
-
Field Details
-
nullCols
Creates null columns if needed. -
outputSchema
-
-
Constructor Details
-
NullColumnBuilder
-
-
Method Details
-
newChild
-
add
-
add
-
add
-
build
-
hasColumns
public boolean hasColumns() -
load
public void load(int rowCount) -
vector
- Specified by:
vector
in interfaceVectorSource
-
output
-
close
public void close()
-