Function lance_core::io::reader::batches_stream
source · pub fn batches_stream(
reader: FileReader,
projection: Schema,
predicate: impl FnMut(&i32) -> bool + Send + Sync + 'static
) -> impl RecordBatchStreamExpand description
Stream desired full batches from the file.
Parameters:
- reader: An opened file reader.
- projection: The schema of the returning RecordBatch.
- predicate: A function that takes a batch ID and returns true if the batch should be returned.
Returns:
- A stream of RecordBatchs, each one corresponding to one full batch in the file.