public abstract class StaticBatchBuilder extends Object
If a column needs a default value, that value can be set either via the values vector or as a column property on the column schema. The result set loader uses the default value to fill empty values. Otherwise, the column is assumed to be nullable and is filled with nulls.
Modifier and Type | Class and Description |
---|---|
static class |
StaticBatchBuilder.NullBatchBuilder |
static class |
StaticBatchBuilder.RepeatedBatchBuilder |
Modifier and Type | Field and Description |
---|---|
protected ResultSetLoader |
loader |
protected TupleMetadata |
schema |
Constructor and Description |
---|
StaticBatchBuilder(ResultVectorCache vectorCache,
TupleMetadata schema) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
VectorContainer |
load(int rowCount)
Populate static vectors with the defined static values.
|
protected abstract void |
loadBatch(int rowCount) |
VectorContainer |
outputContainer() |
TupleMetadata |
schema() |
protected final TupleMetadata schema
protected final ResultSetLoader loader
public StaticBatchBuilder(ResultVectorCache vectorCache, TupleMetadata schema)
public TupleMetadata schema()
public VectorContainer load(int rowCount)
rowCount
- number of rows to generate. Must match the
row count in the batch returned by the readerprotected abstract void loadBatch(int rowCount)
public void close()
public VectorContainer outputContainer()
Copyright © 1970 The Apache Software Foundation. All rights reserved.