Table of Contents

Class LargeBinaryArray

Namespace
Apache.Arrow
Assembly
Apache.Arrow.dll
public class LargeBinaryArray : Array, IArrowArray, IDisposable, IReadOnlyList<byte[]>, IReadOnlyCollection<byte[]>, ICollection<byte[]>, IEnumerable<byte[]>, IEnumerable
Inheritance
LargeBinaryArray
Implements
Derived
Inherited Members

Constructors

LargeBinaryArray(ArrayData)

public LargeBinaryArray(ArrayData data)

Parameters

data ArrayData

LargeBinaryArray(ArrowTypeId, ArrayData)

public LargeBinaryArray(ArrowTypeId typeId, ArrayData data)

Parameters

typeId ArrowTypeId
data ArrayData

LargeBinaryArray(IArrowType, int, ArrowBuffer, ArrowBuffer, ArrowBuffer, int, int)

public LargeBinaryArray(IArrowType dataType, int length, ArrowBuffer valueOffsetsBuffer, ArrowBuffer dataBuffer, ArrowBuffer nullBitmapBuffer, int nullCount = 0, int offset = 0)

Parameters

dataType IArrowType
length int
valueOffsetsBuffer ArrowBuffer
dataBuffer ArrowBuffer
nullBitmapBuffer ArrowBuffer
nullCount int
offset int

Properties

ValueBuffer

public ArrowBuffer ValueBuffer { get; }

Property Value

ArrowBuffer

ValueOffsets

public ReadOnlySpan<long> ValueOffsets { get; }

Property Value

ReadOnlySpan<long>

ValueOffsetsBuffer

public ArrowBuffer ValueOffsetsBuffer { get; }

Property Value

ArrowBuffer

Methods

Accept(IArrowArrayVisitor)

public override void Accept(IArrowArrayVisitor visitor)

Parameters

visitor IArrowArrayVisitor

GetBytes(int)

Get the collection of bytes, as a read-only span, at a given index in the array.

public ReadOnlySpan<byte> GetBytes(int index)

Parameters

index int

Index at which to get bytes.

Returns

ReadOnlySpan<byte>

Returns a ReadOnlySpan<T> object.

Remarks

Note that this method cannot reliably identify null values, which are indistinguishable from empty byte collection values when seen in the context of this method's return type of ReadOnlySpan<T>. Use the IsNull(int) method or the GetBytes(int, out bool) overload instead to reliably determine null values.

Exceptions

ArgumentOutOfRangeException

If the index is negative or beyond the length of the array.

GetBytes(int, out bool)

Get the collection of bytes, as a read-only span, at a given index in the array.

public ReadOnlySpan<byte> GetBytes(int index, out bool isNull)

Parameters

index int

Index at which to get bytes.

isNull bool

Set to true if the value at the given index is null.

Returns

ReadOnlySpan<byte>

Returns a ReadOnlySpan<T> object.

Exceptions

ArgumentOutOfRangeException

If the index is negative or beyond the length of the array.

GetValueLength(int)

public int GetValueLength(int index)

Parameters

index int

Returns

int