Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::VectorCache Class Reference
Collaboration diagram for duckdb::VectorCache:

Public Member Functions

DUCKDB_API VectorCache ()
 Instantiate an empty vector cache.
DUCKDB_API VectorCache (Allocator &allocator, const LogicalType &type, const idx_t capacity=STANDARD_VECTOR_SIZE)
 Instantiate a vector cache with the given type and capacity.
void ResetFromCache (Vector &result) const
const LogicalType & GetType () const

Public Attributes

buffer_ptr< VectorBuffer > buffer

Detailed Description

The VectorCache holds cached vector data. It enables re-using the same memory for different vectors.

Constructor & Destructor Documentation

◆ VectorCache() [1/2]

duckdb::VectorCache::VectorCache ( )

Instantiate an empty vector cache.

138976 : buffer(nullptr) {
138977}

◆ VectorCache() [2/2]

duckdb::VectorCache::VectorCache ( Allocator & allocator,
const LogicalType & type,
const idx_t capacity = STANDARD_VECTOR_SIZE )

Instantiate a vector cache with the given type and capacity.

138979 {
138980 buffer = make_buffer<VectorCacheBuffer>(allocator, type_p, capacity_p);
138981}

Member Function Documentation

◆ ResetFromCache()

void duckdb::VectorCache::ResetFromCache ( Vector & result) const
138983 {
138984 if (!buffer) {
138985 return;
138986 }
138987 auto &vector_cache = buffer->Cast<VectorCacheBuffer>();
138988 vector_cache.ResetFromCache(result, buffer);
138989}

◆ GetType()

const LogicalType & duckdb::VectorCache::GetType ( ) const
138991 {
138992 D_ASSERT(buffer);
138993 auto &vector_cache = buffer->Cast<VectorCacheBuffer>();
138994 return vector_cache.GetType();
138995}

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