@Namespace(value="arrow") @NoOffset @Properties(inherit=arrow.class) public class StructBuilder extends ArrayBuilder
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
StructBuilder(DataType type,
MemoryPool pool,
ArrayBuilderVector field_builders)
If any of field_builders has indeterminate type, this builder will also
|
StructBuilder(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Status |
Append() |
Status |
Append(boolean is_valid)
Append an element to the Struct.
|
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.
|
Status |
AppendValues(long length,
byte[] valid_bytes) |
Status |
AppendValues(long length,
ByteBuffer valid_bytes) |
Status |
AppendValues(long length,
BytePointer valid_bytes)
Null bitmap is of equal length to every child field, and any zero byte
will be considered as a null for that field, but users must using app-
end methods or advance methods of the child builders' independently to
insert data.
|
ArrayBuilder |
field_builder(int i) |
Status |
Finish(StructArray out)
\endcond
|
Status |
FinishInternal(ArrayData out)
\brief Return result of builder as an internal generic ArrayData
object.
|
int |
num_fields() |
void |
Reset()
Reset the builder.
|
DataType |
type()
\brief Return the type of the built Array
|
_capacity, Advance, child_builder, child, Finish, Finish, length, null_count, num_children, Reserve, Resizeaddress, 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 StructBuilder(Pointer p)
Pointer(Pointer).public StructBuilder(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type, MemoryPool pool, @ByVal ArrayBuilderVector field_builders)
@ByVal public Status FinishInternal(@SharedPtr ArrayData out)
ArrayBuilderFinishInternal in class ArrayBuilderout - [out] the finalized ArrayData object@ByVal public Status Finish(@SharedPtr StructArray out)
@ByVal public Status AppendValues(@Cast(value="int64_t") long length, @Cast(value="const uint8_t*") BytePointer valid_bytes)
@ByVal public Status AppendValues(@Cast(value="int64_t") long length, @Cast(value="const uint8_t*") ByteBuffer valid_bytes)
@ByVal public Status AppendValues(@Cast(value="int64_t") long length, @Cast(value="const uint8_t*") byte[] valid_bytes)
@ByVal public Status Append(@Cast(value="bool") boolean is_valid)
@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()
ArrayBuilderAppendEmptyValue in class ArrayBuilder@ByVal public Status AppendEmptyValues(@Cast(value="int64_t") long length)
ArrayBuilderAppendEmptyValues in class ArrayBuilderpublic void Reset()
ArrayBuilderReset in class ArrayBuilderpublic ArrayBuilder field_builder(int i)
public int num_fields()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) public DataType type()
ArrayBuildertype in class ArrayBuilderCopyright © 2021. All rights reserved.