@Namespace(value="arrow") @NoOffset @Properties(inherit=arrow.class) public class ArrayBuilder extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ArrayBuilder(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
_capacity() |
Status |
Advance(long elements)
Deprecated.
|
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 to builder
|
Status |
AppendNulls(long length)
\brief Append a number of null values to builder
|
Status |
AppendScalar(Scalar scalar)
\brief Append a value from a scalar
|
Status |
AppendScalar(Scalar scalar,
long n_repeats) |
Status |
AppendScalars(ScalarVector scalars) |
ArrayBuilder |
child_builder(int i) |
ArrayBuilder |
child(int i)
For nested types.
|
ArrayResult |
Finish()
\brief Return result of builder as an Array object.
|
Status |
Finish(Array out)
\brief Return result of builder as an Array object.
|
Status |
FinishInternal(ArrayData out)
\brief Return result of builder as an internal generic ArrayData
object.
|
long |
length() |
long |
null_count() |
int |
num_children() |
ArrayBuilder |
put(ArrayBuilder arg0) |
Status |
Reserve(long additional_capacity)
\brief Ensure that there is enough space allocated to append the indicated
number of elements without any further reallocation.
|
void |
Reset()
Reset the builder.
|
Status |
Resize(long _capacity)
\brief Ensure that enough memory has been allocated to fit the indicated
number of total elements in the builder, including any that have already
been appended.
|
DataType |
type()
\brief Return the type of the built 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 ArrayBuilder(Pointer p)
Pointer(Pointer)
.@ByRef @Name(value="operator =") public ArrayBuilder put(@ByRef(value=true) ArrayBuilder arg0)
public ArrayBuilder child(int i)
@Const @SharedPtr @ByRef public ArrayBuilder child_builder(int i)
public int num_children()
@ByVal public Status Resize(@Cast(value="int64_t") long _capacity)
capacity
- [in] the minimum number of total array values to
accommodate. Must be greater than the current capacity.@ByVal public Status Reserve(@Cast(value="int64_t") long additional_capacity)
additional_capacity
- [in] the number of additional array valuespublic void Reset()
@ByVal public Status AppendNulls(@Cast(value="int64_t") long length)
@ByVal public Status AppendEmptyValue()
@ByVal public Status AppendEmptyValues(@Cast(value="int64_t") long length)
@ByVal public Status AppendScalar(@Const @ByRef Scalar scalar)
@ByVal public Status AppendScalar(@Const @ByRef Scalar scalar, @Cast(value="int64_t") long n_repeats)
@ByVal public Status AppendScalars(@Const @ByRef ScalarVector scalars)
@ByVal public Status AppendArraySlice(@Const @ByRef ArrayData array, @Cast(value="int64_t") long offset, @Cast(value="int64_t") long length)
@Deprecated @ByVal public Status Advance(@Cast(value="int64_t") long elements)
@ByVal public Status FinishInternal(@SharedPtr ArrayData out)
out
- [out] the finalized ArrayData object@ByVal public Status Finish(@SharedPtr Array out)
out
- [out] the finalized Array object@ByVal public ArrayResult Finish()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) public DataType type()
Copyright © 2022. All rights reserved.