21 template<
class TARGET>
26 template<
class TARGET>
35 inMemOverflowBuffer = std::make_unique<InMemOverflowBuffer>(memoryManager);
39 uint8_t*
allocateOverflow(uint64_t size) {
return inMemOverflowBuffer->allocateSpace(size); }
43 std::unique_ptr<InMemOverflowBuffer> inMemOverflowBuffer;
51 childrenVectors[idx] = std::move(vectorToReference);
54 return childrenVectors;
58 std::vector<std::shared_ptr<ValueVector>> childrenVectors;
65 std::shared_ptr<arrow::ChunkedArray> column;
81 void setDataVector(std::shared_ptr<ValueVector> vector) { dataVector = std::move(vector); }
96 void resizeStructDataVector(
ValueVector* dataVector);
102 std::shared_ptr<ValueVector> dataVector;
108 storage::MemoryManager* memoryManager);
#define KUZU_API
Definition api.h:25
Definition auxiliary_buffer.h:61
friend class ArrowColumnVector
Definition auxiliary_buffer.h:62
Definition auxiliary_buffer.h:105
static std::unique_ptr< AuxiliaryBuffer > getAuxiliaryBuffer(LogicalType &type, storage::MemoryManager *memoryManager)
Definition auxiliary_buffer.h:17
virtual ~AuxiliaryBuffer()=default
TARGET & cast()
Definition auxiliary_buffer.h:22
const TARGET & constCast() const
Definition auxiliary_buffer.h:27
Definition in_mem_overflow_buffer.h:30
Definition auxiliary_buffer.h:75
uint64_t getSize() const
Definition auxiliary_buffer.h:87
void resize(uint64_t numValues)
ValueVector * getDataVector() const
Definition auxiliary_buffer.h:82
std::shared_ptr< ValueVector > getSharedDataVector() const
Definition auxiliary_buffer.h:83
list_entry_t addList(list_size_t listSize)
ListAuxiliaryBuffer(const LogicalType &dataVectorType, storage::MemoryManager *memoryManager)
void resetSize()
Definition auxiliary_buffer.h:89
void setDataVector(std::shared_ptr< ValueVector > vector)
Definition auxiliary_buffer.h:81
Definition value_vector.h:150
Definition auxiliary_buffer.h:32
StringAuxiliaryBuffer(storage::MemoryManager *memoryManager)
Definition auxiliary_buffer.h:34
void resetOverflowBuffer() const
Definition auxiliary_buffer.h:40
InMemOverflowBuffer * getOverflowBuffer() const
Definition auxiliary_buffer.h:38
uint8_t * allocateOverflow(uint64_t size)
Definition auxiliary_buffer.h:39
Definition auxiliary_buffer.h:46
void referenceChildVector(idx_t idx, std::shared_ptr< ValueVector > vectorToReference)
Definition auxiliary_buffer.h:50
StructAuxiliaryBuffer(const LogicalType &type, storage::MemoryManager *memoryManager)
const std::vector< std::shared_ptr< ValueVector > > & getFieldVectors() const
Definition auxiliary_buffer.h:53
Definition value_vector.h:20
Definition auxiliary_buffer.h:7
uint32_t idx_t
Definition types.h:39
uint32_t list_size_t
Definition types.h:54
TO ku_dynamic_cast(FROM old)
Definition cast.h:11
Definition alter_type.h:5