@Namespace(value="arrow") @NoOffset @Properties(inherit=arrow.class) public class DictionaryArray extends Array
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
DictionaryArray(ArrayData data) |
DictionaryArray(DataType type,
Array indices,
Array dictionary) |
DictionaryArray(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
CanCompareIndices(DictionaryArray other)
\brief Determine whether dictionary arrays may be compared without unification
|
DictionaryType |
dict_type() |
Array |
dictionary()
\brief Return the dictionary for this array, which is stored as
a member of the ArrayData internal structure
|
static ArrayResult |
FromArrays(Array indices,
Array dictionary) |
static ArrayResult |
FromArrays(DataType type,
Array indices,
Array dictionary)
\brief Construct DictionaryArray from dictionary and indices
array and validate
This function does the validation of the indices and input type.
|
long |
GetValueIndex(long i)
\brief Return the ith value of indices, cast to int64_t.
|
Array |
indices() |
ArrayResult |
Transpose(DataType type,
Array dictionary,
int[] transpose_map) |
ArrayResult |
Transpose(DataType type,
Array dictionary,
int[] transpose_map,
MemoryPool pool) |
ArrayResult |
Transpose(DataType type,
Array dictionary,
IntBuffer transpose_map) |
ArrayResult |
Transpose(DataType type,
Array dictionary,
IntBuffer transpose_map,
MemoryPool pool) |
ArrayResult |
Transpose(DataType type,
Array dictionary,
IntPointer transpose_map) |
ArrayResult |
Transpose(DataType type,
Array dictionary,
IntPointer transpose_map,
MemoryPool pool)
\brief Transpose this DictionaryArray
This method constructs a new dictionary array with the given dictionary
type, transposing indices using the transpose map.
|
Accept, ApproxEquals, ApproxEquals, data, Diff, Equals, Equals, GetScalar, IsNull, IsValid, length, null_bitmap_data, null_bitmap, null_count, num_fields, offset, RangeEquals, RangeEquals, RangeEquals, RangeEquals, Slice, Slice, SliceSafe, SliceSafe, ToString, type_id, type, Validate, ValidateFull, Viewaddress, 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 DictionaryArray(Pointer p)
Pointer(Pointer).public DictionaryArray(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::ArrayData>"}) ArrayData data)
public DictionaryArray(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array indices, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array dictionary)
@ByVal public static ArrayResult FromArrays(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array indices, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array dictionary)
type - [in] a dictionary typedictionary - [in] the dictionary with same value type as the
type objectindices - [in] an array of non-negative integers smaller than the
size of the dictionary@ByVal public static ArrayResult FromArrays(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array indices, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array dictionary)
@ByVal public ArrayResult Transpose(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array dictionary, @Const IntPointer transpose_map, MemoryPool pool)
type - [in] the new type objectdictionary - [in] the new dictionarytranspose_map - [in] transposition array of this array's indices
into the target array's indicespool - [in] a pool to allocate the array data from@ByVal public ArrayResult Transpose(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array dictionary, @Const IntPointer transpose_map)
@ByVal public ArrayResult Transpose(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array dictionary, @Const IntBuffer transpose_map, MemoryPool pool)
@ByVal public ArrayResult Transpose(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array dictionary, @Const IntBuffer transpose_map)
@ByVal public ArrayResult Transpose(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array dictionary, @Const int[] transpose_map, MemoryPool pool)
@ByVal public ArrayResult Transpose(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array dictionary, @Const int[] transpose_map)
@Cast(value="bool") public boolean CanCompareIndices(@Const @ByRef DictionaryArray other)
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) public Array dictionary()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) public Array indices()
@Cast(value="int64_t") public long GetValueIndex(@Cast(value="int64_t") long i)
@Const public DictionaryType dict_type()
Copyright © 2021. All rights reserved.