public interface ArrayWriter extends ColumnWriter
The array writer represents a Drill repeated type, including repeated maps. The array writer also represents the Drill list and repeated list types as follows:
Although the list vector supports a union of any Drill type, the only sane combinations are:
ArrayReader
Modifier and Type | Method and Description |
---|---|
ArrayWriter |
array() |
DictWriter |
dict() |
ObjectWriter |
entry()
The object type of the list entry.
|
ObjectType |
entryType()
Return a generic object writer for the array entry.
|
void |
save()
When the array contains a tuple or an array, call save()
after each array value.
|
ScalarWriter |
scalar() |
void |
setNull(boolean isNull) |
int |
size()
Number of elements written thus far to the array.
|
TupleWriter |
tuple() |
VariantWriter |
variant() |
copy, isProjected, nullable, schema, setNull, setObject, type
int size()
ObjectType entryType()
void setNull(boolean isNull)
ObjectWriter entry()
ScalarWriter scalar()
TupleWriter tuple()
ArrayWriter array()
VariantWriter variant()
DictWriter dict()
void save()
Copyright © 1970 The Apache Software Foundation. All rights reserved.