The VectorBuffer is a class used by the vector to hold its data.
More...
#include <duckdb.hpp>
The VectorBuffer is a class used by the vector to hold its data.
◆ VectorBuffer() [1/4]
| duckdb::VectorBuffer::VectorBuffer |
( |
VectorBufferType | type | ) |
|
|
inlineexplicit |
10009 : buffer_type(type) {
10010 }
◆ VectorBuffer() [2/4]
| duckdb::VectorBuffer::VectorBuffer |
( |
idx_t | data_size | ) |
|
|
inlineexplicit |
10011 : buffer_type(VectorBufferType::STANDARD_BUFFER) {
10012 if (data_size > 0) {
10013 data = Allocator::DefaultAllocator().Allocate(data_size);
10014 }
10015 }
◆ VectorBuffer() [3/4]
10017 : buffer_type(VectorBufferType::STANDARD_BUFFER), data(std::move(data_p)) {
10018 }
◆ ~VectorBuffer()
| virtual duckdb::VectorBuffer::~VectorBuffer |
( |
| ) |
|
|
inlinevirtual |
◆ VectorBuffer() [4/4]
| duckdb::VectorBuffer::VectorBuffer |
( |
| ) |
|
|
inline |
◆ GetData()
| data_ptr_t duckdb::VectorBuffer::GetData |
( |
| ) |
|
|
inline |
10025 {
10026 return data.get();
10027 }
◆ SetData()
10029 {
10030 data = std::move(new_data);
10031 }
◆ GetAuxiliaryData()
10033 {
10034 return aux_data.get();
10035 }
◆ SetAuxiliaryData()
10037 {
10038 aux_data = std::move(aux_data_p);
10039 }
◆ MoveAuxiliaryData()
| void duckdb::VectorBuffer::MoveAuxiliaryData |
( |
VectorBuffer & | source_buffer | ) |
|
|
inline |
10041 {
10042 SetAuxiliaryData(std::move(source_buffer.aux_data));
10043 }
◆ GetAllocator()
10045 {
10046 return data.GetAllocator();
10047 }
◆ CreateStandardVector() [1/2]
138707 {
138708 return make_buffer<VectorBuffer>(capacity * GetTypeIdSize(type));
138709}
◆ CreateConstantVector() [1/2]
138711 {
138712 return make_buffer<VectorBuffer>(GetTypeIdSize(type));
138713}
◆ CreateConstantVector() [2/2]
| buffer_ptr< VectorBuffer > duckdb::VectorBuffer::CreateConstantVector |
( |
const LogicalType & | logical_type | ) |
|
|
static |
138715 {
138716 return VectorBuffer::CreateConstantVector(type.InternalType());
138717}
◆ CreateStandardVector() [2/2]
| buffer_ptr< VectorBuffer > duckdb::VectorBuffer::CreateStandardVector |
( |
const LogicalType & | logical_type, |
|
|
idx_t | capacity = STANDARD_VECTOR_SIZE ) |
|
static |
138719 {
138720 return VectorBuffer::CreateStandardVector(type.InternalType(), capacity);
138721}
◆ GetBufferType()
| VectorBufferType duckdb::VectorBuffer::GetBufferType |
( |
| ) |
const |
|
inline |
10055 {
10056 return buffer_type;
10057 }
◆ GetAuxiliaryDataType()
| VectorAuxiliaryDataType duckdb::VectorBuffer::GetAuxiliaryDataType |
( |
| ) |
const |
|
inline |
10059 {
10060 return aux_data->type;
10061 }
◆ Cast() [1/2]
template<class TARGET>
| TARGET & duckdb::VectorBuffer::Cast |
( |
| ) |
|
|
inline |
10070 {
10071 DynamicCastCheck<TARGET>(this);
10072 return reinterpret_cast<TARGET &>(*this);
10073 }
◆ Cast() [2/2]
template<class TARGET>
| const TARGET & duckdb::VectorBuffer::Cast |
( |
| ) |
const |
|
inline |
10075 {
10076 DynamicCastCheck<TARGET>(this);
10077 return reinterpret_cast<const TARGET &>(*this);
10078 }
The documentation for this class was generated from the following files: