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
dataArrayData
StringArray(int, ArrowBuffer, ArrowBuffer, ArrowBuffer, int, int)
public StringArray(int length, ArrowBuffer valueOffsetsBuffer, ArrowBuffer dataBuffer, ArrowBuffer nullBitmapBuffer, int nullCount = 0, int offset = 0)
Parameters
lengthintvalueOffsetsBufferArrowBufferdataBufferArrowBuffernullBitmapBufferArrowBuffernullCountintoffsetint
Fields
DefaultEncoding
public static readonly Encoding DefaultEncoding
Field Value
Methods
Accept(IArrowArrayVisitor)
public override void Accept(IArrowArrayVisitor visitor)
Parameters
visitorIArrowArrayVisitor
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
encodingEncodingOptional: 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
encodingEncodingOptional: 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).