@Namespace(value="arrow") @NoOffset @Properties(inherit=arrow.class) public class ChunkedArray extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
ChunkedArray(Array chunk)
\brief Construct a chunked array from a single Array
|
ChunkedArray(ArrayVector chunks)
\brief Construct a chunked array from a vector of arrays
The vector must be non-empty and all its elements must have the same
data type.
|
ChunkedArray(ArrayVector chunks,
DataType type)
\brief Construct a chunked array from a vector of arrays and a data type
As the data type is passed explicitly, the vector may be empty.
|
ChunkedArray(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Array |
chunk(int i) |
ArrayVector |
chunks() |
boolean |
Equals(ChunkedArray other)
\brief Determine if two chunked arrays are equal.
|
ChunkedArrayVectorResult |
Flatten() |
ChunkedArrayVectorResult |
Flatten(MemoryPool pool)
\brief Flatten this chunked array as a vector of chunked arrays, one
for each struct field
|
long |
length() |
static ChunkedArrayResult |
Make(ArrayVector chunks) |
static ChunkedArrayResult |
Make(ArrayVector chunks,
DataType type) |
long |
null_count() |
int |
num_chunks() |
ChunkedArray |
Slice(long offset)
\brief Slice from offset until end of the chunked array
|
ChunkedArray |
Slice(long offset,
long length)
\brief Construct a zero-copy slice of the chunked array with the
indicated offset and length
|
String |
ToString() |
DataType |
type() |
Status |
Validate()
\brief Perform cheap validation checks to determine obvious inconsistencies
within the chunk array's internal data.
|
Status |
ValidateFull()
\brief Perform extensive validation checks to determine inconsistencies
within the chunk array's internal data.
|
ChunkedArrayResult |
View(DataType type)
Construct a zero-copy view of this chunked 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, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic ChunkedArray(Pointer p)
Pointer(Pointer).public ChunkedArray(@ByVal ArrayVector chunks)
public ChunkedArray(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array chunk)
public ChunkedArray(@ByVal ArrayVector chunks, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type)
@ByVal public static ChunkedArrayResult Make(@ByVal ArrayVector chunks, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type)
@ByVal public static ChunkedArrayResult Make(@ByVal ArrayVector chunks)
@Cast(value="int64_t") public long length()
@Cast(value="int64_t") public long null_count()
public int num_chunks()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) public Array chunk(int i)
@Const @ByRef public ArrayVector chunks()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::ChunkedArray>"}) public ChunkedArray 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 chunked array, the length will be adjusted accordingly@SharedPtr @Cast(value={"","std::shared_ptr<arrow::ChunkedArray>"}) public ChunkedArray Slice(@Cast(value="int64_t") long offset)
@ByVal public ChunkedArrayVectorResult Flatten(MemoryPool pool)
pool - [in] The pool for buffer allocations, if any@ByVal public ChunkedArrayVectorResult Flatten()
@ByVal public ChunkedArrayResult View(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type)
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) public DataType type()
@Cast(value="bool") public boolean Equals(@Const @ByRef ChunkedArray other)
@StdString public String ToString()
@ByVal public Status Validate()
Copyright © 2021. All rights reserved.