Class ArrayData
public sealed class ArrayData : IDisposable
- Inheritance
-
ArrayData
- Implements
- Inherited Members
Constructors
ArrayData(IArrowType, int, int, int, ArrowBuffer[], ArrayData[])
public ArrayData(IArrowType dataType, int length, int nullCount, int offset, ArrowBuffer[] buffers, ArrayData[] children)
Parameters
dataTypeIArrowTypelengthintnullCountintoffsetintbuffersArrowBuffer[]childrenArrayData[]
ArrayData(IArrowType, int, int, int, ArrowBuffer[], ArrayData[], ArrayData)
public ArrayData(IArrowType dataType, int length, int nullCount = 0, int offset = 0, ArrowBuffer[] buffers = null, ArrayData[] children = null, ArrayData dictionary = null)
Parameters
dataTypeIArrowTypelengthintnullCountintoffsetintbuffersArrowBuffer[]childrenArrayData[]dictionaryArrayData
ArrayData(IArrowType, int, int, int, IEnumerable<ArrowBuffer>, IEnumerable<ArrayData>)
public ArrayData(IArrowType dataType, int length, int nullCount, int offset, IEnumerable<ArrowBuffer> buffers, IEnumerable<ArrayData> children)
Parameters
dataTypeIArrowTypelengthintnullCountintoffsetintbuffersIEnumerable<ArrowBuffer>childrenIEnumerable<ArrayData>
ArrayData(IArrowType, int, int, int, IEnumerable<ArrowBuffer>, IEnumerable<ArrayData>, ArrayData)
public ArrayData(IArrowType dataType, int length, int nullCount = 0, int offset = 0, IEnumerable<ArrowBuffer> buffers = null, IEnumerable<ArrayData> children = null, ArrayData dictionary = null)
Parameters
dataTypeIArrowTypelengthintnullCountintoffsetintbuffersIEnumerable<ArrowBuffer>childrenIEnumerable<ArrayData>dictionaryArrayData
Fields
Buffers
public readonly ArrowBuffer[] Buffers
Field Value
Children
public readonly ArrayData[] Children
Field Value
DataType
public readonly IArrowType DataType
Field Value
Dictionary
public readonly ArrayData Dictionary
Field Value
Length
public readonly int Length
Field Value
NullCount
The number of null values in the Array. May be -1 if the null count has not been computed.
public int NullCount
Field Value
Offset
public readonly int Offset
Field Value
Methods
Clone(MemoryAllocator)
public ArrayData Clone(MemoryAllocator allocator = null)
Parameters
allocatorMemoryAllocator
Returns
Dispose()
public void Dispose()
GetNullCount()
Get the number of null values in the Array, computing the count if required.
public int GetNullCount()
Returns
Retain()
Retain this ArrayData with shared ownership. The returned ArrayData keeps the underlying buffers alive via reference counting, and recursively retains any children and dictionary. The caller must dispose the returned ArrayData when done.
public ArrayData Retain()
Returns
Slice(int, int)
Slice this ArrayData without ownership tracking. The returned slice shares the underlying buffers but does not keep them alive — the caller must ensure the original ArrayData outlives the slice. Consider using SliceShared(int, int) instead, which uses reference counting to keep the underlying buffers alive for the lifetime of the slice.
public ArrayData Slice(int offset, int length)
Parameters
Returns
SliceShared(int, int)
Slice this ArrayData with shared ownership. The returned slice keeps the underlying buffers alive via reference counting. The caller must dispose the returned ArrayData when done.
public ArrayData SliceShared(int offset, int length)