@Namespace(value="arrow") @NoOffset @Properties(inherit=arrow.class) public class MapBuilder extends ArrayBuilder
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
MapBuilder(MemoryPool pool,
ArrayBuilder key_builder,
ArrayBuilder item_builder) |
MapBuilder(MemoryPool pool,
ArrayBuilder key_builder,
ArrayBuilder item_builder,
boolean keys_sorted)
Use this constructor to infer the built array's type.
|
MapBuilder(MemoryPool pool,
ArrayBuilder key_builder,
ArrayBuilder item_builder,
DataType type)
Use this constructor to define the built array's type explicitly.
|
MapBuilder(MemoryPool pool,
ArrayBuilder item_builder,
DataType type) |
MapBuilder(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Status |
Append()
\brief Start a new variable-length map slot
This function should be called before beginning to append elements to the
key and item builders
|
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 |
AppendValues(int[] offsets,
long length) |
Status |
AppendValues(int[] offsets,
long length,
byte[] valid_bytes) |
Status |
AppendValues(IntBuffer offsets,
long length) |
Status |
AppendValues(IntBuffer offsets,
long length,
ByteBuffer valid_bytes) |
Status |
AppendValues(IntPointer offsets,
long length) |
Status |
AppendValues(IntPointer offsets,
long length,
BytePointer valid_bytes)
\brief Vector append
If passed, valid_bytes is of equal length to values, and any zero byte
will be considered as a null for that slot
|
Status |
Finish(MapArray out)
\endcond
|
Status |
FinishInternal(ArrayData out)
\brief Return result of builder as an internal generic ArrayData
object.
|
ArrayBuilder |
item_builder()
\brief Get builder to append items
Appending an item with this builder should have been preceded
by appending a key with key_builder().
|
ArrayBuilder |
key_builder()
\brief Get builder to append keys.
|
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
|
Status |
ValidateOverflow(long new_elements) |
ArrayBuilder |
value_builder()
\brief Get builder to add Map entries as struct values.
|
_capacity, Advance, child_builder, child, Finish, Finish, length, null_count, num_children, Reserveaddress, 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 MapBuilder(Pointer p)
Pointer(Pointer).public MapBuilder(MemoryPool pool, @Const @SharedPtr @ByRef ArrayBuilder key_builder, @Const @SharedPtr @ByRef ArrayBuilder item_builder, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type)
public MapBuilder(MemoryPool pool, @Const @SharedPtr @ByRef ArrayBuilder key_builder, @Const @SharedPtr @ByRef ArrayBuilder item_builder, @Cast(value="bool") boolean keys_sorted)
public MapBuilder(MemoryPool pool, @Const @SharedPtr @ByRef ArrayBuilder key_builder, @Const @SharedPtr @ByRef ArrayBuilder item_builder)
public MapBuilder(MemoryPool pool, @Const @SharedPtr @ByRef ArrayBuilder item_builder, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type)
@ByVal public Status Resize(@Cast(value="int64_t") long _capacity)
ArrayBuilderResize in class ArrayBuilderpublic void Reset()
ArrayBuilderReset in class ArrayBuilder@ByVal public Status FinishInternal(@SharedPtr ArrayData out)
ArrayBuilderFinishInternal in class ArrayBuilderout - [out] the finalized ArrayData object@ByVal public Status Finish(@SharedPtr MapArray out)
@ByVal public Status AppendValues(@Const IntPointer offsets, @Cast(value="int64_t") long length, @Cast(value="const uint8_t*") BytePointer valid_bytes)
@ByVal public Status AppendValues(@Const IntPointer offsets, @Cast(value="int64_t") long length)
@ByVal public Status AppendValues(@Const IntBuffer offsets, @Cast(value="int64_t") long length, @Cast(value="const uint8_t*") ByteBuffer valid_bytes)
@ByVal public Status AppendValues(@Const IntBuffer offsets, @Cast(value="int64_t") long length)
@ByVal public Status AppendValues(@Const int[] offsets, @Cast(value="int64_t") long length, @Cast(value="const uint8_t*") byte[] valid_bytes)
@ByVal public Status AppendValues(@Const int[] offsets, @Cast(value="int64_t") long length)
@ByVal public Status Append()
@ByVal public Status AppendNull()
ArrayBuilderAppendNull in class ArrayBuilder@ByVal public Status AppendNulls(@Cast(value="int64_t") long length)
ArrayBuilderAppendNulls in class ArrayBuilder@ByVal public Status AppendEmptyValue()
ArrayBuilderAppendEmptyValue in class ArrayBuilder@ByVal public Status AppendEmptyValues(@Cast(value="int64_t") long length)
ArrayBuilderAppendEmptyValues in class ArrayBuilderpublic ArrayBuilder key_builder()
public ArrayBuilder item_builder()
public ArrayBuilder value_builder()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) public DataType type()
ArrayBuildertype in class ArrayBuilderCopyright © 2021. All rights reserved.