@Namespace(value="arrow") @NoOffset @Properties(inherit=arrow.class) public class BooleanBuilder extends ArrayBuilder
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
BooleanBuilder() |
BooleanBuilder(DataType type) |
BooleanBuilder(DataType type,
MemoryPool pool) |
BooleanBuilder(long size)
Native array allocator.
|
BooleanBuilder(MemoryPool pool) |
BooleanBuilder(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Status |
Append(boolean val)
Scalar append
|
Status |
Append(byte val) |
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)
Write nulls as uint8_t* (0 value indicates null) into pre-allocated memory
|
Status |
AppendValues(BoolVector values)
\brief Append a sequence of elements in one shot
|
Status |
AppendValues(BoolVector values,
BoolVector is_valid)
\brief Append a sequence of elements in one shot
|
Status |
AppendValues(byte[] values) |
Status |
AppendValues(byte[] values,
BoolVector is_valid) |
Status |
AppendValues(byte[] values,
long length) |
Status |
AppendValues(byte[] values,
long length,
BoolVector is_valid) |
Status |
AppendValues(byte[] values,
long length,
byte[] valid_bytes) |
Status |
AppendValues(ByteBuffer values) |
Status |
AppendValues(ByteBuffer values,
BoolVector is_valid) |
Status |
AppendValues(ByteBuffer values,
long length) |
Status |
AppendValues(ByteBuffer values,
long length,
BoolVector is_valid) |
Status |
AppendValues(ByteBuffer values,
long length,
ByteBuffer valid_bytes) |
Status |
AppendValues(BytePointer values)
\brief Append a sequence of elements in one shot
|
Status |
AppendValues(BytePointer values,
BoolVector is_valid)
\brief Append a sequence of elements in one shot
|
Status |
AppendValues(BytePointer values,
long length) |
Status |
AppendValues(BytePointer values,
long length,
BoolVector is_valid)
\brief Append a sequence of elements in one shot
|
Status |
AppendValues(BytePointer values,
long length,
BytePointer valid_bytes)
\brief Append a sequence of elements in one shot
|
Status |
AppendValues(long length,
boolean value)
\brief Append a sequence of elements in one shot, with a specified nullmap
|
Status |
Finish(BooleanArray out)
\endcond
|
Status |
FinishInternal(ArrayData out)
\brief Return result of builder as an internal generic ArrayData
object.
|
BooleanBuilder |
getPointer(long i) |
BooleanBuilder |
position(long position) |
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
|
void |
UnsafeAppend(boolean val)
Scalar append, without checking for capacity
|
void |
UnsafeAppend(byte val) |
void |
UnsafeAppendNull() |
_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, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic BooleanBuilder(Pointer p)
Pointer(Pointer).public BooleanBuilder(long size)
Pointer.position(long).public BooleanBuilder(MemoryPool pool)
public BooleanBuilder()
public BooleanBuilder(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type, MemoryPool pool)
public BooleanBuilder(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type)
public BooleanBuilder position(long position)
public BooleanBuilder getPointer(long i)
getPointer in class Pointer@ByVal public Status AppendNulls(@Cast(value="int64_t") long length)
AppendNulls in class ArrayBuilder@ByVal public Status AppendNull()
ArrayBuilderAppendNull 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 UnsafeAppend(@Cast(value="const bool") boolean val)
public void UnsafeAppendNull()
@ByVal public Status AppendValues(@Cast(value="const uint8_t*") BytePointer values, @Cast(value="int64_t") long length, @Cast(value="const uint8_t*") BytePointer valid_bytes)
values - [in] a contiguous array of bytes (non-zero is 1)length - [in] the number of values to appendvalid_bytes - [in] an optional sequence of bytes where non-zero
indicates a valid (non-null) value@ByVal public Status AppendValues(@Cast(value="const uint8_t*") BytePointer values, @Cast(value="int64_t") long length)
@ByVal public Status AppendValues(@Cast(value="const uint8_t*") ByteBuffer values, @Cast(value="int64_t") long length, @Cast(value="const uint8_t*") ByteBuffer valid_bytes)
@ByVal public Status AppendValues(@Cast(value="const uint8_t*") ByteBuffer values, @Cast(value="int64_t") long length)
@ByVal public Status AppendValues(@Cast(value="const uint8_t*") byte[] values, @Cast(value="int64_t") long length, @Cast(value="const uint8_t*") byte[] valid_bytes)
@ByVal public Status AppendValues(@Cast(value="const uint8_t*") byte[] values, @Cast(value="int64_t") long length)
@ByVal public Status AppendValues(@Cast(value="const uint8_t*") BytePointer values, @Cast(value="int64_t") long length, @Const @ByRef BoolVector is_valid)
values - [in] a contiguous C array of valueslength - [in] the number of values to appendis_valid - [in] an std::vector@ByVal public Status AppendValues(@Cast(value="const uint8_t*") ByteBuffer values, @Cast(value="int64_t") long length, @Const @ByRef BoolVector is_valid)
@ByVal public Status AppendValues(@Cast(value="const uint8_t*") byte[] values, @Cast(value="int64_t") long length, @Const @ByRef BoolVector is_valid)
@ByVal public Status AppendValues(@Cast(value="uint8_t*") @StdVector BytePointer values, @Const @ByRef BoolVector is_valid)
values - [in] a std::vector of bytesis_valid - [in] an std::vector@ByVal public Status AppendValues(@Cast(value="uint8_t*") @StdVector ByteBuffer values, @Const @ByRef BoolVector is_valid)
@ByVal public Status AppendValues(@Cast(value="uint8_t*") @StdVector byte[] values, @Const @ByRef BoolVector is_valid)
@ByVal public Status AppendValues(@Cast(value="uint8_t*") @StdVector BytePointer values)
values - [in] a std::vector of bytes@ByVal public Status AppendValues(@Cast(value="uint8_t*") @StdVector ByteBuffer values)
@ByVal public Status AppendValues(@Cast(value="uint8_t*") @StdVector byte[] values)
@ByVal public Status AppendValues(@Const @ByRef BoolVector values, @Const @ByRef BoolVector is_valid)
values - [in] an std::vectoris_valid - [in] an std::vector@ByVal public Status AppendValues(@Const @ByRef BoolVector values)
values - [in] an std::vector@ByVal public Status AppendValues(@Cast(value="int64_t") long length, @Cast(value="bool") boolean value)
values_begin - [in] InputIterator to the beginning of the valuesvalues_end - [in] InputIterator pointing to the end of the valuesvalid_begin - [in] InputIterator with elements indication valid(1)
or null(0) values@ByVal public Status FinishInternal(@SharedPtr ArrayData out)
ArrayBuilderFinishInternal in class ArrayBuilderout - [out] the finalized ArrayData object@ByVal public Status Finish(@SharedPtr BooleanArray out)
public void Reset()
ArrayBuilderReset in class ArrayBuilder@ByVal public Status Resize(@Cast(value="int64_t") long _capacity)
ArrayBuilderResize in class ArrayBuilder@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) public DataType type()
ArrayBuildertype in class ArrayBuilderCopyright © 2021. All rights reserved.