@Namespace(value="arrow") @Properties(inherit=arrow.class) public class DictionaryUnifier extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
DictionaryUnifier(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Status |
GetResult(DataType out_type,
Array out_dict)
\brief Return a result DictionaryType with the smallest possible index
type to accommodate the unified dictionary.
|
Status |
GetResultWithIndexType(DataType index_type,
Array out_dict)
\brief Return a unified dictionary with the given index type.
|
static DictionaryUnifierResult |
Make(DataType value_type) |
static DictionaryUnifierResult |
Make(DataType value_type,
MemoryPool pool)
\brief Construct a DictionaryUnifier
|
Status |
Unify(Array dictionary)
\brief Append dictionary to the internal memo
|
Status |
Unify(Array dictionary,
ArrowBuffer out_transpose)
\brief Append dictionary and compute transpose indices
|
static ChunkedArrayResult |
UnifyChunkedArray(ChunkedArray array) |
static ChunkedArrayResult |
UnifyChunkedArray(ChunkedArray array,
MemoryPool pool)
\brief Unify dictionaries accross array chunks
The dictionaries in the array chunks will be unified, their indices
accordingly transposed.
|
static TableResult |
UnifyTable(Table table) |
static TableResult |
UnifyTable(Table table,
MemoryPool pool)
\brief Unify dictionaries accross the chunks of each table column
The dictionaries in each table column will be unified, their indices
accordingly transposed.
|
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 DictionaryUnifier(Pointer p)
Pointer(Pointer)
.@ByVal public static DictionaryUnifierResult Make(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType value_type, MemoryPool pool)
value_type
- [in] the data type of the dictionariespool
- [in] MemoryPool to use for memory allocations@ByVal public static DictionaryUnifierResult Make(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType value_type)
@ByVal public static ChunkedArrayResult UnifyChunkedArray(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::ChunkedArray>"}) ChunkedArray array, MemoryPool pool)
@ByVal public static ChunkedArrayResult UnifyChunkedArray(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::ChunkedArray>"}) ChunkedArray array)
@ByVal public static TableResult UnifyTable(@Const @ByRef Table table, MemoryPool pool)
@ByVal public static TableResult UnifyTable(@Const @ByRef Table table)
@ByVal public Status Unify(@Const @ByRef Array dictionary)
@ByVal public Status Unify(@Const @ByRef Array dictionary, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Buffer>*"}) ArrowBuffer out_transpose)
dictionary
- [in] the dictionary values to unifyout_transpose
- [out] a Buffer containing computed transpose indices
as int32_t values equal in length to the passed dictionary. The value in
each slot corresponds to the new index value for each original index
for a DictionaryArray with the old dictionary@ByVal public Status GetResult(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>*"}) DataType out_type, @SharedPtr Array out_dict)
@ByVal public Status GetResultWithIndexType(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType index_type, @SharedPtr Array out_dict)
Copyright © 2022. All rights reserved.