mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 12:33:59 +00:00
Make delta readers lazy, single-use, and serialized. Capture schema before polling, cache it for empty and completed streams, and release the native iterator on completion, break, and error. Cover unused rejected readers and early-drop/alias behavior.
1.8 KiB
1.8 KiB
@lancedb/lancedb • Docs
@lancedb/lancedb / TableDeltaReader
Interface: TableDeltaReader
A streaming table-delta reader.
schema() is available before consuming the stream, including when the
range is empty. The stream yields Arrow record batches without
materializing the full result.
A reader owns one native cursor. It is single-use:
[Symbol.asyncIterator]() returns the same iterator, concurrent pulls are
serialized, and return() releases the native stream on early drop.
Extends
AsyncIterable<RecordBatch>.AsyncIterator<RecordBatch>
Methods
[asyncIterator]()
asyncIterator: AsyncIterator<RecordBatch<any>, any, undefined>
Returns
AsyncIterator<RecordBatch<any>, any, undefined>
Inherited from
AsyncIterable.[asyncIterator]
next()
next(...args): Promise<IteratorResult<RecordBatch<any>, any>>
Parameters
- ...args: [] | [
undefined]
Returns
Promise<IteratorResult<RecordBatch<any>, any>>
Inherited from
AsyncIterator.next
return()?
optional return(value?): Promise<IteratorResult<RecordBatch<any>, any>>
Parameters
- value?:
any
Returns
Promise<IteratorResult<RecordBatch<any>, any>>
Inherited from
AsyncIterator.return
schema()
schema(): Promise<Schema<any>>
Returns
Promise<Schema<any>>
throw()?
optional throw(e?): Promise<IteratorResult<RecordBatch<any>, any>>
Parameters
- e?:
any
Returns
Promise<IteratorResult<RecordBatch<any>, any>>
Inherited from
AsyncIterator.throw