RecordBatchFileReader
and RecordBatchStreamReader
are
interfaces for generating record batches from different input sources.
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
.
$read_next_batch()
: Returns a RecordBatch
$schema()
: Returns a Schema
$batches()
: Returns a list of RecordBatch
es
$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.
arrow::Object
-> RecordBatchReader
read_next_batch()
RecordBatchReader$read_next_batch()
clone()
The objects of this class are cloneable with this method.
RecordBatchReader$clone(deep = FALSE)
deep
Whether to make a deep clone.
arrow::Object
-> arrow::RecordBatchReader
-> RecordBatchStreamReader
batches()
RecordBatchStreamReader$batches()
clone()
The objects of this class are cloneable with this method.
RecordBatchStreamReader$clone(deep = FALSE)
deep
Whether to make a deep clone.
arrow::Object
-> RecordBatchFileReader
get_batch()
RecordBatchFileReader$get_batch(i)
batches()
RecordBatchFileReader$batches()
clone()
The objects of this class are cloneable with this method.
RecordBatchFileReader$clone(deep = FALSE)
deep
Whether to make a deep clone.