RecordBatchFileReader and RecordBatchStreamReader are interfaces for generating record batches from different input sources.

Factory

The RecordBatchFileReader$create() and RecordBatchStreamReader$create() factory methods instantiate the object and take a single argument, named according to the class:

  • file A character file name, raw vector, or Arrow file connection object (e.g. RandomAccessFile).

  • stream A raw vector, Buffer, or InputStream.

Methods

  • $read_next_batch(): Returns a RecordBatch

  • $schema(): Returns a Schema

  • $batches(): Returns a list of RecordBatches

  • $get_batch(i): For RecordBatchFileReader, return a particular batch by an integer index.

  • $num_record_batches(): For RecordBatchFileReader, see how many batches are in the file.

Super class

arrow::Object -> RecordBatchReader

Methods

Public methods

Inherited methods

Method read_next_batch()

Usage

RecordBatchReader$read_next_batch()


Method clone()

The objects of this class are cloneable with this method.

Usage

RecordBatchReader$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Super classes

arrow::Object -> arrow::RecordBatchReader -> RecordBatchStreamReader

Methods

Public methods

Inherited methods

Method batches()

Usage

RecordBatchStreamReader$batches()


Method clone()

The objects of this class are cloneable with this method.

Usage

RecordBatchStreamReader$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Super class

arrow::Object -> RecordBatchFileReader

Methods

Public methods

Inherited methods

Method get_batch()

Usage

RecordBatchFileReader$get_batch(i)


Method batches()

Usage

RecordBatchFileReader$batches()


Method clone()

The objects of this class are cloneable with this method.

Usage

RecordBatchFileReader$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.