# ArrowCArrayStreamOwner

Owns an unmanaged Arrow C Data Interface ArrowArrayStream struct and the managed stream exported through its callbacks.

Class 

`OfficeIMO.Data.Arrow`

**Namespace**

`OfficeIMO.Data.Arrow`

**Assembly**

`OfficeIMO.Data.Arrow`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[ArrowCArrayStreamOwner.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Data.Arrow/ArrowCArrayStreamOwner.cs#L50)

**Implements**

`IDisposable`

**Modifiers**

sealed

Owns an unmanaged Arrow C Data Interface ArrowArrayStream struct and the managed stream exported through its callbacks.

## Inheritance

- object
- ArrowCArrayStreamOwner

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Method [DbDataReaderArrowExtensions.ExportArrowCStream](/api/data-arrow/officeimo-data-arrow-dbdatareaderarrowextensions/#method-exportarrowcstream-data-common-dbdatareader-officeimo-data-arrow-arrowreadoptions-threading-cancellationtoken)

Filter members 

Show inherited

## Methods

`public ArrowCArrayStreamLease AcquireLease()` [#](#method-acquirelease)

[ArrowCArrayStreamOwner.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Data.Arrow/ArrowCArrayStreamOwner.cs#L50)

Acquires a fail-safe lease for one native consumer call or callback sequence.

Returns

`ArrowCArrayStreamLease`

`public void Dispose()` [#](#method-dispose)

[ArrowCArrayStreamOwner.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Data.Arrow/ArrowCArrayStreamOwner.cs#L79)

Stops accepting new leases and releases the unmanaged stream after active leases finish.

`public IArrowArrayStream ImportArrayStream()` [#](#method-importarraystream)

[ArrowCArrayStreamOwner.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Data.Arrow/ArrowCArrayStreamOwner.cs#L71)

Imports this exported stream back into the managed Apache Arrow stream contract.

Returns

`IArrowArrayStream`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public bool IsDisposed { get; }` [#](#property-isdisposed)

[ArrowCArrayStreamOwner.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Data.Arrow/ArrowCArrayStreamOwner.cs#L24)

Gets whether the native stream was consumed or this owner was disposed.

<!-- PowerForge markdown artifact sha256:F52376C3BB82F1AACCFFC9A2097A05D69CF10F7724FADD7F9098E4C000102A98 -->
