as_record_batch_reader: Convert an object to an Arrow RecordBatchReader

View source: R/record-batch-reader.R

as_record_batch_readerR Documentation

Convert an object to an Arrow RecordBatchReader

Description

Convert an object to an Arrow RecordBatchReader

Usage

as_record_batch_reader(x, ...)

## S3 method for class 'RecordBatchReader'
as_record_batch_reader(x, ...)

## S3 method for class 'Table'
as_record_batch_reader(x, ...)

## S3 method for class 'RecordBatch'
as_record_batch_reader(x, ...)

## S3 method for class 'data.frame'
as_record_batch_reader(x, ...)

## S3 method for class 'Dataset'
as_record_batch_reader(x, ...)

## S3 method for class ''function''
as_record_batch_reader(x, ..., schema)

## S3 method for class 'arrow_dplyr_query'
as_record_batch_reader(x, ...)

## S3 method for class 'Scanner'
as_record_batch_reader(x, ...)

Arguments

x

An object to convert to a RecordBatchReader

...

Passed to S3 methods

schema

The schema() that must match the schema returned by each call to x when x is a function.

Value

A RecordBatchReader

Examples


reader <- as_record_batch_reader(data.frame(col1 = 1, col2 = "two"))
reader$read_next_batch()


arrow documentation built on Nov. 25, 2023, 1:09 a.m.