public interface ObjectWriter extends ColumnWriter
This interface defines a writer to set values for value vectors using a simple, uniform interface modeled after a JSON object. Every column value is an object of one of three types: scalar, array or tuple. Methods exist to "cast" this object to the proper type. This model allows a very simple representation: tuples (rows, maps) consist of objects. Arrays are lists of objects.
Every column resides at an index, is defined by a schema, is backed by a value vector, and and is written to by a writer. Each column also tracks the schema version in which it was added to detect schema evolution. Each column has an optional overflow vector that holds overflow record values when a batch becomes full.
Modifier and Type | Method and Description |
---|---|
ArrayWriter |
array() |
DictWriter |
dict() |
WriterEvents |
events()
The internal state behind this writer.
|
ScalarWriter |
scalar() |
TupleWriter |
tuple() |
VariantWriter |
variant() |
ColumnWriter |
writer()
Generic version of the above, for dynamic handling of
writers.
|
copy, isProjected, nullable, schema, setNull, setObject, type
ScalarWriter scalar()
TupleWriter tuple()
ArrayWriter array()
VariantWriter variant()
DictWriter dict()
ColumnWriter writer()
WriterEvents events()
Copyright © 1970 The Apache Software Foundation. All rights reserved.