Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

DbDataReaderArrowExtensions

OfficeIMO.Data.Arrow

Namespace
OfficeIMO.Data.Arrow
Assembly
OfficeIMO.Data.Arrow
Source revision
ba882f6b0d07 with working tree changes
Modifiers
static

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 required
Forward-only reader to project.
options OfficeIMO.Data.Arrow.ArrowReadOptions? = null optional
Bounded Arrow projection options.
cancellationToken System.Threading.CancellationToken = default optional
Cancellation observed by native stream callbacks.
public 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 required
options OfficeIMO.Data.Arrow.ArrowReadOptions? = null optional

Returns

IArrowArrayStream
public 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 required
options OfficeIMO.Data.Arrow.ArrowReadOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

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 required
options OfficeIMO.Data.Arrow.ArrowReadOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

IAsyncEnumerable<RecordBatch>