@Namespace(value="gandiva") @Properties(inherit=gandiva.class) public class SelectionVector extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
SelectionVector.Mode |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
kNumModes |
Constructor and Description |
---|
SelectionVector(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
ArrowBuffer |
GetBuffer()
Get the underlying arrow buffer.
|
long |
GetIndex(long index)
Get the value at a given index.
|
long |
GetMaxSlots()
The maximum slots (capacity) of the selection vector.
|
long |
GetMaxSupportedValue() |
SelectionVector.Mode |
GetMode()
Mode of SelectionVector
|
long |
GetNumSlots()
The number of slots (size) of the selection vector.
|
static IntPointer |
kAllModes() |
static SelectionVector.Mode |
kAllModes(int i) |
static int |
kNumModes() |
static Status |
MakeImmutableInt16(long num_slots,
ArrowBuffer buffer,
SelectionVector selection_vector)
\brief creates a selection vector with pre populated buffer.
|
static Status |
MakeImmutableInt32(long num_slots,
ArrowBuffer buffer,
SelectionVector selection_vector)
\brief creates a selection vector with pre populated buffer.
|
static Status |
MakeInt16(long max_slots,
ArrowBuffer buffer,
SelectionVector selection_vector)
\brief make selection vector with int16 type records.
|
static Status |
MakeInt16(long max_slots,
MemoryPool pool,
SelectionVector selection_vector) |
static Status |
MakeInt32(long max_slots,
ArrowBuffer buffer,
SelectionVector selection_vector)
\brief make selection vector with int32 type records.
|
static Status |
MakeInt32(long max_slots,
MemoryPool pool,
SelectionVector selection_vector)
\brief make selection vector with int32 type records.
|
static Status |
MakeInt64(long max_slots,
ArrowBuffer buffer,
SelectionVector selection_vector)
\brief make selection vector with int64 type records.
|
static Status |
MakeInt64(long max_slots,
MemoryPool pool,
SelectionVector selection_vector)
\brief make selection vector with int64 type records.
|
Status |
PopulateFromBitMap(byte[] bitmap,
long bitmap_size,
long max_bitmap_index) |
Status |
PopulateFromBitMap(ByteBuffer bitmap,
long bitmap_size,
long max_bitmap_index) |
Status |
PopulateFromBitMap(BytePointer bitmap,
long bitmap_size,
long max_bitmap_index)
\brief populate selection vector for all the set bits in the bitmap.
|
void |
SetIndex(long index,
long value)
Set the value at a given index.
|
void |
SetNumSlots(long num_slots)
Set the number of slots in the selection vector.
|
Array |
ToArray()
Convert to arrow-array.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public SelectionVector(Pointer p)
Pointer(Pointer)
.@MemberGetter public static int kNumModes()
@MemberGetter public static SelectionVector.Mode kAllModes(int i)
@MemberGetter @Cast(value="gandiva::SelectionVector::Mode*") public static IntPointer kAllModes()
@Cast(value="uint64_t") public long GetIndex(@Cast(value="int64_t") long index)
public void SetIndex(@Cast(value="int64_t") long index, @Cast(value="uint64_t") long value)
@Cast(value="int64_t") public long GetMaxSlots()
@Cast(value="int64_t") public long GetNumSlots()
public void SetNumSlots(@Cast(value="int64_t") long num_slots)
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) public Array ToArray()
@ByRef public ArrowBuffer GetBuffer()
public SelectionVector.Mode GetMode()
@ByVal public Status PopulateFromBitMap(@Cast(value="const uint8_t*") BytePointer bitmap, @Cast(value="int64_t") long bitmap_size, @Cast(value="int64_t") long max_bitmap_index)
bitmap
- [in] the bitmapbitmap_size
- [in] size of the bitmap in bytesmax_bitmap_index
- [in] max valid index in bitmap (can be lesser than
capacity in the bitmap, due to alignment/padding).@ByVal public Status PopulateFromBitMap(@Cast(value="const uint8_t*") ByteBuffer bitmap, @Cast(value="int64_t") long bitmap_size, @Cast(value="int64_t") long max_bitmap_index)
@ByVal public Status PopulateFromBitMap(@Cast(value="const uint8_t*") byte[] bitmap, @Cast(value="int64_t") long bitmap_size, @Cast(value="int64_t") long max_bitmap_index)
@ByVal public static Status MakeInt16(@Cast(value="int64_t") long max_slots, @SharedPtr ArrowBuffer buffer, @SharedPtr SelectionVector selection_vector)
max_slots
- [in] max number of slotsbuffer
- [in] buffer sized to accommodate max_slotsselection_vector
- [out] selection vector backed by 'buffer'@ByVal public static Status MakeInt16(@Cast(value="int64_t") long max_slots, MemoryPool pool, @SharedPtr SelectionVector selection_vector)
max_slots
- [in] max number of slotspool
- [in] memory pool to allocate bufferselection_vector
- [out] selection vector backed by a buffer allocated from the
pool.@ByVal public static Status MakeImmutableInt16(@Cast(value="int64_t") long num_slots, @SharedPtr ArrowBuffer buffer, @SharedPtr SelectionVector selection_vector)
num_slots
- [in] size of the selection vectorbuffer
- [in] pre-populated bufferselection_vector
- [out] selection vector backed by 'buffer'@ByVal public static Status MakeInt32(@Cast(value="int64_t") long max_slots, @SharedPtr ArrowBuffer buffer, @SharedPtr SelectionVector selection_vector)
max_slots
- [in] max number of slotsbuffer
- [in] buffer sized to accommodate max_slotsselection_vector
- [out] selection vector backed by 'buffer'@ByVal public static Status MakeInt32(@Cast(value="int64_t") long max_slots, MemoryPool pool, @SharedPtr SelectionVector selection_vector)
max_slots
- [in] max number of slotspool
- [in] memory pool to allocate bufferselection_vector
- [out] selection vector backed by a buffer allocated from the
pool.@ByVal public static Status MakeImmutableInt32(@Cast(value="int64_t") long num_slots, @SharedPtr ArrowBuffer buffer, @SharedPtr SelectionVector selection_vector)
num_slots
- [in] size of the selection vectorbuffer
- [in] pre-populated bufferselection_vector
- [out] selection vector backed by 'buffer'@ByVal public static Status MakeInt64(@Cast(value="int64_t") long max_slots, @SharedPtr ArrowBuffer buffer, @SharedPtr SelectionVector selection_vector)
max_slots
- [in] max number of slotsbuffer
- [in] buffer sized to accommodate max_slotsselection_vector
- [out] selection vector backed by 'buffer'@ByVal public static Status MakeInt64(@Cast(value="int64_t") long max_slots, MemoryPool pool, @SharedPtr SelectionVector selection_vector)
max_slots
- [in] max number of slotspool
- [in] memory pool to allocate bufferselection_vector
- [out] selection vector backed by a buffer allocated from the
pool.Copyright © 2022. All rights reserved.