Table of Contents

Class BooleanArray

Namespace
Apache.Arrow
Assembly
Apache.Arrow.dll
public class BooleanArray : Array, IArrowArray, IDisposable, IReadOnlyList<bool?>, IReadOnlyCollection<bool?>, ICollection<bool?>, IEnumerable<bool?>, IEnumerable
Inheritance
BooleanArray
Implements
Inherited Members
Extension Methods

Constructors

BooleanArray(ArrayData)

public BooleanArray(ArrayData data)

Parameters

data ArrayData

BooleanArray(ArrowBuffer, ArrowBuffer, int, int, int)

public BooleanArray(ArrowBuffer valueBuffer, ArrowBuffer nullBitmapBuffer, int length, int nullCount, int offset)

Parameters

valueBuffer ArrowBuffer
nullBitmapBuffer ArrowBuffer
length int
nullCount int
offset int

Properties

ValueBuffer

public ArrowBuffer ValueBuffer { get; }

Property Value

ArrowBuffer

Values

Gets the boolean array values as a span of bytes (a bitmap).

public ReadOnlySpan<byte> Values { get; }

Property Value

ReadOnlySpan<byte>

Remarks

CAUTION: The returned ReadOnlySpan is not GC-tracked if backed by unmanaged memory. Ensure the BooleanArray object remains in scope and undisposed while accessing this span.

Methods

Accept(IArrowArrayVisitor)

public override void Accept(IArrowArrayVisitor visitor)

Parameters

visitor IArrowArrayVisitor

GetBoolean(int)

[Obsolete("GetBoolean does not support null values. Use GetValue instead (which this method invokes internally).")]
public bool GetBoolean(int index)

Parameters

index int

Returns

bool

GetValue(int)

public bool? GetValue(int index)

Parameters

index int

Returns

bool?