@Name(value="arrow::NumericBuilder<arrow::UInt8Type>") @NoOffset @Properties(inherit=arrow.class) public class UInt8Builder extends ArrayBuilder
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
UInt8Builder(DataType type,
MemoryPool pool) |
UInt8Builder(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Status |
Append(byte val)
Append a single scalar and increase the size if necessary.
|
Status |
AppendArraySlice(ArrayData array,
long offset,
long length)
\brief Append a sequence of elements in one shot, with a specified nullmap
|
Status |
AppendEmptyValue()
\brief Append a empty element
|
Status |
AppendEmptyValues(long length)
\brief Append several empty elements
|
Status |
AppendNull()
\brief Append a single null element
|
Status |
AppendNulls(long length)
Write nulls as uint8_t* (0 value indicates null) into pre-allocated memory
The memory at the corresponding data slot is set to 0 to prevent
uninitialized memory access
|
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(byte[] values,
long length,
byte[] bitmap,
long bitmap_offset) |
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(ByteBuffer values,
long length,
ByteBuffer bitmap,
long bitmap_offset) |
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(BytePointer values,
long length,
BytePointer bitmap,
long bitmap_offset)
\brief Append a sequence of elements in one shot
|
Status |
Finish(byte[] out) |
Status |
Finish(ByteBuffer out) |
Status |
Finish(BytePointer out)
\endcond
|
Status |
FinishInternal(ArrayData out)
\brief Return result of builder as an internal generic ArrayData
object.
|
BytePointer |
get(long index) |
byte |
GetValue(long index) |
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(byte val)
Append a single scalar under the assumption that the underlying Buffer is
large enough.
|
void |
UnsafeAppendNull() |
_capacity, Advance, AppendScalar, AppendScalar, AppendScalars, child_builder, child, Finish, Finish, length, null_count, num_children, put, Reserve
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 UInt8Builder(Pointer p)
Pointer(Pointer)
.public UInt8Builder(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type, MemoryPool pool)
@ByVal public Status Append(@Cast(value="const arrow::NumericBuilder<arrow::UInt8Type>::value_type") byte val)
@ByVal public Status AppendNulls(@Cast(value="int64_t") long length)
AppendNulls
in class ArrayBuilder
@ByVal public Status AppendNull()
AppendNull
in class ArrayBuilder
@ByVal public Status AppendEmptyValue()
AppendEmptyValue
in class ArrayBuilder
@ByVal public Status AppendEmptyValues(@Cast(value="int64_t") long length)
AppendEmptyValues
in class ArrayBuilder
@Cast(value="arrow::NumericBuilder<arrow::UInt8Type>::value_type") public byte GetValue(@Cast(value="int64_t") long index)
public void Reset()
ArrayBuilder
Reset
in class ArrayBuilder
@ByVal public Status Resize(@Cast(value="int64_t") long _capacity)
ArrayBuilder
Resize
in class ArrayBuilder
@Cast(value="arrow::NumericBuilder<arrow::UInt8Type>::value_type*") @ByRef @Name(value="operator []") public BytePointer get(@Cast(value="int64_t") long index)
@ByVal public Status AppendValues(@Cast(value="const arrow::NumericBuilder<arrow::UInt8Type>::value_type*") BytePointer values, @Cast(value="int64_t") long length, @Cast(value="const uint8_t*") BytePointer valid_bytes)
values
- [in] a contiguous C array of valueslength
- [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 arrow::NumericBuilder<arrow::UInt8Type>::value_type*") BytePointer values, @Cast(value="int64_t") long length)
@ByVal public Status AppendValues(@Cast(value="const arrow::NumericBuilder<arrow::UInt8Type>::value_type*") ByteBuffer values, @Cast(value="int64_t") long length, @Cast(value="const uint8_t*") ByteBuffer valid_bytes)
@ByVal public Status AppendValues(@Cast(value="const arrow::NumericBuilder<arrow::UInt8Type>::value_type*") ByteBuffer values, @Cast(value="int64_t") long length)
@ByVal public Status AppendValues(@Cast(value="const arrow::NumericBuilder<arrow::UInt8Type>::value_type*") byte[] values, @Cast(value="int64_t") long length, @Cast(value="const uint8_t*") byte[] valid_bytes)
@ByVal public Status AppendValues(@Cast(value="const arrow::NumericBuilder<arrow::UInt8Type>::value_type*") byte[] values, @Cast(value="int64_t") long length)
@ByVal public Status AppendValues(@Cast(value="const arrow::NumericBuilder<arrow::UInt8Type>::value_type*") BytePointer values, @Cast(value="int64_t") long length, @Cast(value="const uint8_t*") BytePointer bitmap, @Cast(value="int64_t") long bitmap_offset)
values
- [in] a contiguous C array of valueslength
- [in] the number of values to appendbitmap
- [in] a validity bitmap to copy (may be null)bitmap_offset
- [in] an offset into the validity bitmap@ByVal public Status AppendValues(@Cast(value="const arrow::NumericBuilder<arrow::UInt8Type>::value_type*") ByteBuffer values, @Cast(value="int64_t") long length, @Cast(value="const uint8_t*") ByteBuffer bitmap, @Cast(value="int64_t") long bitmap_offset)
@ByVal public Status AppendValues(@Cast(value="const arrow::NumericBuilder<arrow::UInt8Type>::value_type*") byte[] values, @Cast(value="int64_t") long length, @Cast(value="const uint8_t*") byte[] bitmap, @Cast(value="int64_t") long bitmap_offset)
@ByVal public Status AppendValues(@Cast(value="const arrow::NumericBuilder<arrow::UInt8Type>::value_type*") 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 arrow::NumericBuilder<arrow::UInt8Type>::value_type*") ByteBuffer values, @Cast(value="int64_t") long length, @Const @ByRef BoolVector is_valid)
@ByVal public Status AppendValues(@Cast(value="const arrow::NumericBuilder<arrow::UInt8Type>::value_type*") byte[] values, @Cast(value="int64_t") long length, @Const @ByRef BoolVector is_valid)
@ByVal public Status AppendValues(@Cast(value="arrow::NumericBuilder<arrow::UInt8Type>::value_type*") @StdVector BytePointer values, @Const @ByRef BoolVector is_valid)
values
- [in] a std::vector of valuesis_valid
- [in] an std::vector@ByVal public Status AppendValues(@Cast(value="arrow::NumericBuilder<arrow::UInt8Type>::value_type*") @StdVector ByteBuffer values, @Const @ByRef BoolVector is_valid)
@ByVal public Status AppendValues(@Cast(value="arrow::NumericBuilder<arrow::UInt8Type>::value_type*") @StdVector byte[] values, @Const @ByRef BoolVector is_valid)
@ByVal public Status AppendValues(@Cast(value="arrow::NumericBuilder<arrow::UInt8Type>::value_type*") @StdVector BytePointer values)
values
- [in] a std::vector of values@ByVal public Status AppendValues(@Cast(value="arrow::NumericBuilder<arrow::UInt8Type>::value_type*") @StdVector ByteBuffer values)
@ByVal public Status AppendValues(@Cast(value="arrow::NumericBuilder<arrow::UInt8Type>::value_type*") @StdVector byte[] values)
@ByVal public Status FinishInternal(@SharedPtr ArrayData out)
ArrayBuilder
FinishInternal
in class ArrayBuilder
out
- [out] the finalized ArrayData object@ByVal public Status Finish(@Cast(value="arrow::NumericBuilder<arrow::UInt8Type>::ArrayType*") @SharedPtr BytePointer out)
@ByVal public Status Finish(@Cast(value="arrow::NumericBuilder<arrow::UInt8Type>::ArrayType*") @SharedPtr ByteBuffer out)
@ByVal public Status Finish(@Cast(value="arrow::NumericBuilder<arrow::UInt8Type>::ArrayType*") @SharedPtr byte[] out)
@ByVal public Status AppendArraySlice(@Const @ByRef ArrayData array, @Cast(value="int64_t") long offset, @Cast(value="int64_t") long length)
AppendArraySlice
in class ArrayBuilder
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.public void UnsafeAppend(@Cast(value="const arrow::NumericBuilder<arrow::UInt8Type>::value_type") byte val)
public void UnsafeAppendNull()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) public DataType type()
ArrayBuilder
type
in class ArrayBuilder
Copyright © 2022. All rights reserved.