@Namespace(value="arrow") @Properties(inherit=arrow.class) public class SparseUnionBuilder extends BasicUnionBuilder
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
SparseUnionBuilder(MemoryPool pool)
Use this constructor to initialize the UnionBuilder with no child builders,
allowing type to be inferred.
|
SparseUnionBuilder(MemoryPool pool,
ArrayBuilderVector children,
DataType type)
Use this constructor to specify the type explicitly.
|
SparseUnionBuilder(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Status |
Append(byte next_type)
\brief Append an element to the UnionArray.
|
Status |
AppendArraySlice(ArrayData array,
long offset,
long length)
\brief Append a range of values from an array.
|
Status |
AppendEmptyValue()
\brief Append a non-null value to builder
The appended value is an implementation detail, but the corresponding
memory slot is guaranteed to be initialized.
|
Status |
AppendEmptyValues(long length)
\brief Append a number of non-null values to builder
The appended values are an implementation detail, but the corresponding
memory slot is guaranteed to be initialized.
|
Status |
AppendNull()
\brief Append a null value.
|
Status |
AppendNulls(long length)
\brief Append multiple null values.
|
AppendChild, AppendChild, AppendChild, Finish, FinishInternal, length, type
_capacity, Advance, AppendScalar, AppendScalar, AppendScalars, child_builder, child, Finish, Finish, null_count, num_children, put, Reserve, Reset, Resize
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 SparseUnionBuilder(Pointer p)
Pointer(Pointer)
.public SparseUnionBuilder(MemoryPool pool)
public SparseUnionBuilder(MemoryPool pool, @Const @ByRef ArrayBuilderVector children, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type)
@ByVal public Status AppendNull()
AppendNull
in class ArrayBuilder
@ByVal public Status AppendNulls(@Cast(value="int64_t") long length)
AppendNulls
in class ArrayBuilder
@ByVal public Status AppendEmptyValue()
ArrayBuilder
AppendEmptyValue
in class ArrayBuilder
@ByVal public Status AppendEmptyValues(@Cast(value="int64_t") long length)
ArrayBuilder
AppendEmptyValues
in class ArrayBuilder
@ByVal public Status Append(byte next_type)
next_type
- [in] type_id of the child to which the next value will be appended.
The corresponding child builder must be appended to independently after this method
is called, and all other child builders must have null or empty value appended.@ByVal public Status AppendArraySlice(@Const @ByRef ArrayData array, @Cast(value="int64_t") long offset, @Cast(value="int64_t") long length)
ArrayBuilder
AppendArraySlice
in class ArrayBuilder
Copyright © 2022. All rights reserved.