@Namespace(value="arrow") @NoOffset @Properties(inherit=arrow.class) public class Array extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
Array(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Status |
Accept(ArrayVisitor visitor) |
boolean |
ApproxEquals(Array arr) |
boolean |
ApproxEquals(Array arr,
EqualOptions arg1)
Approximate equality comparison with another array
epsilon is only used if this is FloatArray or DoubleArray
|
ArrayData |
data() |
String |
Diff(Array other)
\brief Return the formatted unified diff of arrow::Diff between this
Array and another Array
|
boolean |
Equals(Array arr) |
boolean |
Equals(Array arr,
EqualOptions arg1)
Equality comparison with another array
|
ScalarResult |
GetScalar(long i)
\brief Return a Scalar containing the value of this array at i
|
boolean |
IsNull(long i)
\brief Return true if value at index is null.
|
boolean |
IsValid(long i)
\brief Return true if value at index is valid (not null).
|
long |
length()
Size in the number of elements this array contains.
|
BytePointer |
null_bitmap_data()
Raw pointer to the null bitmap.
|
ArrowBuffer |
null_bitmap()
Buffer for the validity (null) bitmap, if any.
|
long |
null_count()
The number of null entries in the array.
|
int |
num_fields() |
long |
offset()
A relative position into another array's data, to enable zero-copy
slicing.
|
boolean |
RangeEquals(Array other,
long start_idx,
long end_idx,
long other_start_idx) |
boolean |
RangeEquals(Array other,
long start_idx,
long end_idx,
long other_start_idx,
EqualOptions arg4) |
boolean |
RangeEquals(long start_idx,
long end_idx,
long other_start_idx,
Array other) |
boolean |
RangeEquals(long start_idx,
long end_idx,
long other_start_idx,
Array other,
EqualOptions arg4)
Compare if the range of slots specified are equal for the given array and
this array.
|
Array |
Slice(long offset)
Slice from offset until end of the array
|
Array |
Slice(long offset,
long length)
Construct a zero-copy slice of the array with the indicated offset and
length
|
ArrayResult |
SliceSafe(long offset)
Input-checking variant of Array::Slice
|
ArrayResult |
SliceSafe(long offset,
long length)
Input-checking variant of Array::Slice
|
String |
ToString() |
int |
type_id() |
DataType |
type() |
Status |
Validate()
\brief Perform cheap validation checks to determine obvious inconsistencies
within the array's internal data.
|
Status |
ValidateFull()
\brief Perform extensive validation checks to determine inconsistencies
within the array's internal data.
|
ArrayResult |
View(DataType type)
Construct a zero-copy view of this array with the given type.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic Array(Pointer p)
Pointer(Pointer).@Cast(value="bool") public boolean IsNull(@Cast(value="int64_t") long i)
@Cast(value="bool") public boolean IsValid(@Cast(value="int64_t") long i)
@ByVal public ScalarResult GetScalar(@Cast(value="int64_t") long i)
@Cast(value="int64_t") public long length()
@Cast(value="int64_t") public long offset()
@Cast(value="int64_t") public long null_count()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) public DataType type()
@SharedPtr public ArrowBuffer null_bitmap()
null_count == 0 or for null type, this will be null.
This buffer does not account for any slice offset@Cast(value="const uint8_t*") public BytePointer null_bitmap_data()
null_count == 0 or for null type, this will be null.
This buffer does not account for any slice offset@Cast(value="bool") public boolean Equals(@Const @ByRef Array arr, @Const @ByRef(nullValue="arrow::EqualOptions::Defaults()") EqualOptions arg1)
@StdString public String Diff(@Const @ByRef Array other)
@Cast(value="bool") public boolean ApproxEquals(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array arr, @Const @ByRef(nullValue="arrow::EqualOptions::Defaults()") EqualOptions arg1)
@Cast(value="bool") public boolean ApproxEquals(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array arr)
@Cast(value="bool") public boolean RangeEquals(@Cast(value="int64_t") long start_idx, @Cast(value="int64_t") long end_idx, @Cast(value="int64_t") long other_start_idx, @Const @ByRef Array other, @Const @ByRef(nullValue="arrow::EqualOptions::Defaults()") EqualOptions arg4)
@Cast(value="bool") public boolean RangeEquals(@Cast(value="int64_t") long start_idx, @Cast(value="int64_t") long end_idx, @Cast(value="int64_t") long other_start_idx, @Const @ByRef Array other)
@Cast(value="bool") public boolean RangeEquals(@Const @ByRef Array other, @Cast(value="int64_t") long start_idx, @Cast(value="int64_t") long end_idx, @Cast(value="int64_t") long other_start_idx, @Const @ByRef(nullValue="arrow::EqualOptions::Defaults()") EqualOptions arg4)
@Cast(value="bool") public boolean RangeEquals(@Const @ByRef Array other, @Cast(value="int64_t") long start_idx, @Cast(value="int64_t") long end_idx, @Cast(value="int64_t") long other_start_idx)
@ByVal public Status Accept(ArrayVisitor visitor)
@ByVal public ArrayResult View(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type)
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) public Array Slice(@Cast(value="int64_t") long offset, @Cast(value="int64_t") long length)
offset - [in] the position of the first element in the constructed
slicelength - [in] the length of the slice. If there are not enough
elements in the array, the length will be adjusted accordingly@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) public Array Slice(@Cast(value="int64_t") long offset)
@ByVal public ArrayResult SliceSafe(@Cast(value="int64_t") long offset, @Cast(value="int64_t") long length)
@ByVal public ArrayResult SliceSafe(@Cast(value="int64_t") long offset)
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::ArrayData>"}) public ArrayData data()
public int num_fields()
@StdString public String ToString()
@ByVal public Status Validate()
Copyright © 2021. All rights reserved.