Table of Contents

Class PrimitiveArray<T>

Namespace
Apache.Arrow
Assembly
Apache.Arrow.dll
public abstract class PrimitiveArray<T> : Array, IArrowArray, IDisposable, IReadOnlyList<T?>, IReadOnlyCollection<T?>, ICollection<T?>, IEnumerable<T?>, IEnumerable where T : struct, IEquatable<T>

Type Parameters

T
Inheritance
PrimitiveArray<T>
Implements
Derived
Inherited Members
Extension Methods

Constructors

PrimitiveArray(ArrayData)

protected PrimitiveArray(ArrayData data)

Parameters

data ArrayData

Properties

ValueBuffer

public ArrowBuffer ValueBuffer { get; }

Property Value

ArrowBuffer

Values

Gets the array values as a span.

public ReadOnlySpan<T> Values { get; }

Property Value

ReadOnlySpan<T>

Remarks

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

Methods

GetValue(int)

public T? GetValue(int index)

Parameters

index int

Returns

T?

ToList(bool)

public IList<T?> ToList(bool includeNulls = false)

Parameters

includeNulls bool

Returns

IList<T?>