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::ZSTDCompressionVectorState Struct Reference

Public Member Functions

bool AddStringLength (const string_t &str)
void Initialize (idx_t expected_tuple_count, ZSTDCompressionBufferCollection &buffer_collection, const CompressionInfo &info)

Public Attributes

page_id_t starting_page
page_offset_t starting_offset
idx_t uncompressed_size = 0
idx_t compressed_size = 0
string_length_t * string_lengths = nullptr
bool in_vector = false
idx_t tuple_count = 0
 Amount of tuples we have seen for the current vector.
idx_t vector_size
 The expected size of this vector (ZSTD_VECTOR_SIZE except for the last one).

Constructor & Destructor Documentation

◆ ZSTDCompressionVectorState()

duckdb::ZSTDCompressionVectorState::ZSTDCompressionVectorState ( )
inline
407077 {
407078 }

Member Function Documentation

◆ AddStringLength()

bool duckdb::ZSTDCompressionVectorState::AddStringLength ( const string_t & str)
inline
407081 {
407082 string_lengths[tuple_count++] = UnsafeNumericCast<string_length_t>(str.GetSize());
407083 return tuple_count >= vector_size;
407084 }
idx_t vector_size
The expected size of this vector (ZSTD_VECTOR_SIZE except for the last one).
Definition duckdb.cpp:407115
idx_t tuple_count
Amount of tuples we have seen for the current vector.
Definition duckdb.cpp:407113

◆ Initialize()

void duckdb::ZSTDCompressionVectorState::Initialize ( idx_t expected_tuple_count,
ZSTDCompressionBufferCollection & buffer_collection,
const CompressionInfo & info )
inline

Mark where the vector begins (page_id + page_offset)

Set the string_lengths destination and save in what buffer its stored

Finally forward the current_buffer_ptr to point after all string lengths we'll write

407087 {
407088 vector_size = expected_tuple_count;
407089
407090 auto current_offset = buffer_collection.GetCurrentOffset();
407092 starting_offset = current_offset;
407093 starting_page = buffer_collection.GetCurrentId();
407094
407096 buffer_collection.GetCurrentFlags().SetStringMetadata();
407097 string_lengths = reinterpret_cast<string_length_t *>(buffer_collection.GetCurrentBufferPtr());
407098
407100 buffer_collection.GetCurrentOffset() += expected_tuple_count * sizeof(string_length_t);
407101 }

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