Class BinaryViewArray
public class BinaryViewArray : Array, IArrowArray, IDisposable, IReadOnlyList<byte[]>, IReadOnlyCollection<byte[]>, IEnumerable<byte[]>, IEnumerable
- Inheritance
-
BinaryViewArray
- Implements
-
IEnumerable<byte[]>
- Derived
- Inherited Members
Constructors
BinaryViewArray(ArrayData)
public BinaryViewArray(ArrayData data)
Parameters
dataArrayData
BinaryViewArray(ArrowTypeId, ArrayData)
public BinaryViewArray(ArrowTypeId typeId, ArrayData data)
Parameters
typeIdArrowTypeIddataArrayData
BinaryViewArray(IArrowType, int, ArrowBuffer, ArrowBuffer, ArrowBuffer, int, int)
public BinaryViewArray(IArrowType dataType, int length, ArrowBuffer binaryViewsBuffer, ArrowBuffer dataBuffer, ArrowBuffer nullBitmapBuffer, int nullCount = 0, int offset = 0)
Parameters
dataTypeIArrowTypelengthintbinaryViewsBufferArrowBufferdataBufferArrowBuffernullBitmapBufferArrowBuffernullCountintoffsetint
Properties
DataBufferCount
public int DataBufferCount { get; }
Property Value
Views
public ReadOnlySpan<BinaryView> Views { get; }
Property Value
ViewsBuffer
public ArrowBuffer ViewsBuffer { get; }
Property Value
Methods
Accept(IArrowArrayVisitor)
public override void Accept(IArrowArrayVisitor visitor)
Parameters
visitorIArrowArrayVisitor
DataBuffer(int)
public ArrowBuffer DataBuffer(int index)
Parameters
indexint
Returns
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
indexintIndex 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
indexintIndex at which to get bytes.
isNullboolSet 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
indexint