Apache Arrow (C++)
A columnar in-memory analytics layer designed to accelerate big data.
Public Member Functions | Protected Member Functions | List of all members
arrow::AdaptiveUIntBuilder Class Reference

#include <arrow/builder.h>

Inheritance diagram for arrow::AdaptiveUIntBuilder:
arrow::ArrayBuilder

Public Member Functions

 AdaptiveUIntBuilder (MemoryPool *pool ARROW_MEMORY_POOL_DEFAULT)
 
Status Append (const uint64_t val)
 Scalar append. More...
 
Status Append (const uint64_t *values, int64_t length, const uint8_t *valid_bytes=NULLPTR)
 Append a sequence of elements in one shot. More...
 
Status FinishInternal (std::shared_ptr< ArrayData > *out) override
 Return result of builder as an internal generic ArrayData object. More...
 

Protected Member Functions

Status ExpandIntSize (uint8_t new_int_size)
 
template<typename new_type , typename old_type >
Status ::type ExpandIntSizeInternal ()
 
template<typename new_type , typename old_type >
std::enable_if< __LESS(sizeof(old_type), sizeof(new_type)), Status >::type ExpandIntSizeInternal ()
 
template<typename new_type >
Status ExpandIntSizeN ()
 

Constructor & Destructor Documentation

◆ AdaptiveUIntBuilder()

arrow::AdaptiveUIntBuilder::AdaptiveUIntBuilder ( MemoryPool *pool  ARROW_MEMORY_POOL_DEFAULT)
explicit

Member Function Documentation

◆ Append() [1/2]

Status arrow::AdaptiveUIntBuilder::Append ( const uint64_t  val)
inline

Scalar append.

◆ Append() [2/2]

Status arrow::AdaptiveUIntBuilder::Append ( const uint64_t *  values,
int64_t  length,
const uint8_t *  valid_bytes = NULLPTR 
)

Append a sequence of elements in one shot.

Parameters
[in]valuesa contiguous C array of values
[in]lengththe number of values to append
[in]valid_bytesan optional sequence of bytes where non-zero indicates a valid (non-null) value
Returns
Status

◆ ExpandIntSize()

Status arrow::AdaptiveUIntBuilder::ExpandIntSize ( uint8_t  new_int_size)
protected

◆ ExpandIntSizeInternal() [1/2]

template<typename new_type , typename old_type >
Status ::type arrow::AdaptiveUIntBuilder::ExpandIntSizeInternal ( )
protected

◆ ExpandIntSizeInternal() [2/2]

template<typename new_type , typename old_type >
std::enable_if<__LESS(sizeof(old_type), sizeof(new_type)), Status>::type arrow::AdaptiveUIntBuilder::ExpandIntSizeInternal ( )
protected

◆ ExpandIntSizeN()

template<typename new_type >
Status arrow::AdaptiveUIntBuilder::ExpandIntSizeN ( )
protected

◆ FinishInternal()

Status arrow::AdaptiveUIntBuilder::FinishInternal ( std::shared_ptr< ArrayData > *  out)
overridevirtual

Return result of builder as an internal generic ArrayData object.

Resets builder

Parameters
[out]outthe finalized ArrayData object
Returns
Status

Implements arrow::ArrayBuilder.


The documentation for this class was generated from the following file: