|
|
idx_t | row_count = 0 |
|
idx_t | null_count = 0 |
|
initialize_t | initialize = nullptr |
| | function pointers for construction
|
|
append_vector_t | append_vector = nullptr |
|
shared_ptr< ArrowTypeExtensionData > | extension_data = nullptr |
| | Arrow Extension Type information.
|
|
finalize_t | finalize = nullptr |
|
vector< unique_ptr< ArrowAppendData > > | child_data |
| | child data (if any)
|
|
unique_ptr< ArrowArray > | array |
| | the arrow array C API data, only set after Finalize
|
| duckdb::array< const void *, 4 > | buffers = {{nullptr, nullptr, nullptr, nullptr}} |
|
vector< ArrowArray * > | child_pointers |
|
vector< ArrowArray > | child_arrays |
| | Arrays so the children can be moved.
|
|
ArrowArray | dictionary |
|
ClientProperties | options |
|
idx_t | offset = 0 |
| | Offset used to keep data positions when producing a mix of inlined and not-inlined arrow string views.
|
◆ ArrowAppendData()
32765 : options(options_p) {
32766 dictionary.release = nullptr;
32768 }
vector< ArrowBuffer > arrow_buffers
The buffers of the arrow vector.
Definition duckdb.cpp:32849
◆ GetValidityBuffer()
| ArrowBuffer & duckdb::ArrowAppendData::GetValidityBuffer |
( |
| ) |
|
|
inline |
◆ GetMainBuffer()
| ArrowBuffer & duckdb::ArrowAppendData::GetMainBuffer |
( |
| ) |
|
|
inline |
◆ GetAuxBuffer()
| ArrowBuffer & duckdb::ArrowAppendData::GetAuxBuffer |
( |
| ) |
|
|
inline |
◆ GetBufferSizeBuffer()
| ArrowBuffer & duckdb::ArrowAppendData::GetBufferSizeBuffer |
( |
| ) |
|
|
inline |
This is a special case, we resize it if necessary since it's a different size than set in the constructor
◆ GetBitPosition()
| void duckdb::ArrowAppendData::GetBitPosition |
( |
idx_t | row_idx, |
|
|
idx_t & | current_byte, |
|
|
uint8_t & | current_bit ) |
|
inlinestatic |
32793 {
32794 current_byte = row_idx / 8;
32795 current_bit = row_idx % 8;
32796 }
◆ UnsetBit()
| void duckdb::ArrowAppendData::UnsetBit |
( |
uint8_t * | data, |
|
|
idx_t | current_byte, |
|
|
uint8_t | current_bit ) |
|
inlinestatic |
32798 {
32799 data[current_byte] &= ~((
uint64_t)1 << current_bit);
32800 }
◆ NextBit()
| void duckdb::ArrowAppendData::NextBit |
( |
idx_t & | current_byte, |
|
|
uint8_t & | current_bit ) |
|
inlinestatic |
32802 {
32803 current_bit++;
32804 if (current_bit == 8) {
32805 current_byte++;
32806 current_bit = 0;
32807 }
32808 }
◆ ResizeValidity()
| void duckdb::ArrowAppendData::ResizeValidity |
( |
ArrowBuffer & | buffer, |
|
|
idx_t | row_count ) |
|
inlinestatic |
32810 {
32811 auto byte_count = (row_count + 7) / 8;
32812 buffer.resize(byte_count, 0xFF);
32813 }
◆ SetNull()
| void duckdb::ArrowAppendData::SetNull |
( |
uint8_t * | validity_data, |
|
|
idx_t | current_byte, |
|
|
uint8_t | current_bit ) |
|
inline |
32815 {
32816 UnsetBit(validity_data, current_byte, current_bit);
32817 null_count++;
32818 }
◆ AppendValidity()
32857 {
32858
32861 if (
format.validity.AllValid()) {
32862
32863 return;
32864 }
32865
32866
32869 idx_t current_byte;
32870 GetBitPosition(row_count, current_byte, current_bit);
32871 for (
idx_t i = from; i < to; i++) {
32872 auto source_idx =
format.sel->get_index(i);
32873
32874 if (!
format.validity.RowIsValid(source_idx)) {
32875 SetNull(validity_data, current_byte, current_bit);
32876 }
32877 NextBit(current_byte, current_bit);
32878 }
32879}
std::basic_string< Char > format(const S &format_str, Args &&... args)
Definition duckdb.cpp:16295
GOpaque< Size > size(const GMat &src)
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
ArrowBuffer & GetValidityBuffer()
Getters for the Buffers.
Definition duckdb.cpp:32772
◆ buffers
| duckdb::array<const void *, 4> duckdb::ArrowAppendData::buffers = {{nullptr, nullptr, nullptr, nullptr}} |
32837{{nullptr, nullptr, nullptr, nullptr}};
The documentation for this struct was generated from the following file: