Struct parquet::arrow::array_reader::PrimitiveArrayReader [−][src]
pub struct PrimitiveArrayReader<T: DataType> { /* fields omitted */ }
Expand description
Primitive array readers are leaves of array reader tree. They accept page iterator and read them into primitive arrays.
Implementations
pub fn new(
pages: Box<dyn PageIterator>,
column_desc: ColumnDescPtr,
arrow_type: Option<ArrowType>
) -> Result<Self>
pub fn new(
pages: Box<dyn PageIterator>,
column_desc: ColumnDescPtr,
arrow_type: Option<ArrowType>
) -> Result<Self>
Construct primitive array reader.
Trait Implementations
Implementation of primitive array reader.
Returns data type of primitive array.
Reads at most batch_size
records into array.
Returns the definition levels of data from last call of next_batch
.
The result is used by parent array reader to calculate its own definition
levels and repetition levels, so that its parent can calculate null bitmap. Read more