public interface ArrayReader extends ColumnReader
#elements()
, which provides
an array-like access to the scalars.#tuple(int)
to get a tuple reader for a
specific array element. Use size()
to learn the number of maps in
the array.#array(int)
method to get the nested list
at a given index. Use size()
to learn the number of maps in
the array.ArrayWriter
Modifier and Type | Method and Description |
---|---|
ArrayReader |
array() |
ObjectReader |
entry()
Return the generic object reader for the array element.
|
ObjectType |
entryType()
The object type of the list entry.
|
boolean |
next()
Move forward one position.
|
void |
rewind() |
ScalarReader |
scalar() |
void |
setPosn(int index)
Set the array reader to read a given array entry.
|
int |
size()
Number of elements in the array.
|
TupleReader |
tuple() |
VariantReader |
variant() |
getAsString, getObject, isNull, schema, type
int size()
ObjectType entryType()
ObjectReader entry()
setPosn(int)
to set the position. This form allows
up-front setup of the readers when convenient for the caller.ScalarReader scalar()
TupleReader tuple()
ArrayReader array()
VariantReader variant()
void setPosn(int index)
void rewind()
boolean next()
Copyright © 1970 The Apache Software Foundation. All rights reserved.