Class
DbDataReaderArrowExtensions
OfficeIMO.Data.Arrow
Apache Arrow projections for forward-only tabular readers.
Inheritance
- object
- DbDataReaderArrowExtensions
Methods
public static ArrowCArrayStreamOwner ExportArrowCStream(DbDataReader reader, ArrowReadOptions? options = null, CancellationToken cancellationToken = default) #Exports the current result set through the Arrow C stream interface without materializing the whole result set.
Parameters
- reader System.Data.Common.DbDataReader
- Forward-only reader to project.
- options OfficeIMO.Data.Arrow.ArrowReadOptions? = null
- Bounded Arrow projection options.
- cancellationToken System.Threading.CancellationToken = default
- Cancellation observed by native stream callbacks.
Returns
ArrowCArrayStreamOwnerpublic static IArrowArrayStream OpenArrowStream(DbDataReader reader, ArrowReadOptions? options = null) #Opens the current result set as a bounded Apache Arrow record-batch stream.
Parameters
- reader System.Data.Common.DbDataReader
- options OfficeIMO.Data.Arrow.ArrowReadOptions? = null
Returns
IArrowArrayStreampublic static IEnumerable<RecordBatch> ReadArrowBatches(DbDataReader reader, ArrowReadOptions? options = null, CancellationToken cancellationToken = default) #Converts the current result set into bounded Arrow record batches. The caller retains ownership of both the reader and every returned batch.
Parameters
- reader System.Data.Common.DbDataReader
- options OfficeIMO.Data.Arrow.ArrowReadOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
IEnumerable<RecordBatch>public static IAsyncEnumerable<RecordBatch> ReadArrowBatchesAsync(DbDataReader reader, ArrowReadOptions? options = null, CancellationToken cancellationToken = default) #Asynchronously converts the current result set into bounded Arrow record batches. The caller retains ownership of both the reader and every returned batch.
Parameters
- reader System.Data.Common.DbDataReader
- options OfficeIMO.Data.Arrow.ArrowReadOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
IAsyncEnumerable<RecordBatch>