basic_array_stream {nanoarrow}R Documentation

Create ArrayStreams from batches

Description

Create ArrayStreams from batches

Usage

basic_array_stream(batches, schema = NULL, validate = TRUE)

Arguments

batches

A list() of nanoarrow_array objects or objects that can be coerced via as_nanoarrow_array().

schema

A nanoarrow_schema or NULL to guess based on the first schema.

validate

Use FALSE to skip the validation step (i.e., if you know that the arrays are valid).

Value

An nanoarrow_array_stream

Examples

(stream <- basic_array_stream(list(data.frame(a = 1, b = 2))))
as.data.frame(stream$get_next())
stream$get_next()


[Package nanoarrow version 0.5.0.1 Index]