Class StringArray
public class StringArray : BinaryArray, IArrowArray, IDisposable, IReadOnlyList<byte[]>, IReadOnlyCollection<byte[]>, ICollection<byte[]>, IEnumerable<byte[]>, IReadOnlyList<string>, IReadOnlyCollection<string>, ICollection<string>, IEnumerable<string>, IEnumerable
- Inheritance
-
StringArray
- Implements
-
ICollection<byte[]>IEnumerable<byte[]>
- Inherited Members
Constructors
StringArray(ArrayData)
public StringArray(ArrayData data)
Parameters
data
ArrayData
StringArray(int, ArrowBuffer, ArrowBuffer, ArrowBuffer, int, int)
public StringArray(int length, ArrowBuffer valueOffsetsBuffer, ArrowBuffer dataBuffer, ArrowBuffer nullBitmapBuffer, int nullCount = 0, int offset = 0)
Parameters
length
intvalueOffsetsBuffer
ArrowBufferdataBuffer
ArrowBuffernullBitmapBuffer
ArrowBuffernullCount
intoffset
int
Fields
DefaultEncoding
public static readonly Encoding DefaultEncoding
Field Value
Methods
Accept(IArrowArrayVisitor)
public override void Accept(IArrowArrayVisitor visitor)
Parameters
visitor
IArrowArrayVisitor
GetString(int, Encoding)
Get the string value at the given index
public string GetString(int index, Encoding encoding = null)
Parameters
Returns
- string
The string object at the given index
IsMaterialized(Encoding)
Check if the array has been materialized for the given encoding
public bool IsMaterialized(Encoding encoding = null)
Parameters
encoding
EncodingOptional: the string encoding, default is UTF8
Returns
- bool
True of false whether the array has been materialized
Materialize(Encoding)
Materialize the array for the given encoding to accelerate the string access
public void Materialize(Encoding encoding = null)
Parameters
encoding
EncodingOptional: the string encoding, default is UTF8
Remarks
This method is not thread safe when it is called in parallel with GetString(int, Encoding) or Materialize(Encoding).