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

State for the current segment (a collection of vectors). More...

Public Member Functions

void InitializeSegment (ZSTDCompressionBufferCollection &buffer_collection, idx_t vectors_in_segment)

Public Attributes

idx_t total_vectors_in_segment = 0xDEADBEEF
 Amount of vectors in this segment, determined during analyze.
idx_t vector_in_segment_count = 0
 The amount of vectors we've seen in the current segment.
page_id_t * page_ids = nullptr
page_offset_t * page_offsets = nullptr
uncompressed_size_t * uncompressed_sizes = nullptr
compressed_size_t * compressed_sizes = nullptr

Detailed Description

State for the current segment (a collection of vectors).

Constructor & Destructor Documentation

◆ ZSTDCompressionSegmentState()

duckdb::ZSTDCompressionSegmentState::ZSTDCompressionSegmentState ( )
inline
407026 {
407027 }

Member Function Documentation

◆ InitializeSegment()

void duckdb::ZSTDCompressionSegmentState::InitializeSegment ( ZSTDCompressionBufferCollection & buffer_collection,
idx_t vectors_in_segment )
inline

Have to be on the segment handle

407030 {
407031 total_vectors_in_segment = vectors_in_segment;
407033 buffer_collection.block_id = INVALID_BLOCK;
407034
407036 if (!buffer_collection.IsOnSegmentBuffer()) {
407037 throw InternalException("(ZSTDCompressionSegmentState::InitializeSegment) Can't InitializeSegment on a "
407038 "non-segment buffer!");
407039 }
407040 auto base = buffer_collection.segment_handle.Ptr();
407041 page_offset_t offset = 0;
407042 page_ids = reinterpret_cast<page_id_t *>(base + offset);
407043 offset += (sizeof(page_id_t) * vectors_in_segment);
407044
407046 page_offsets = reinterpret_cast<page_offset_t *>(base + offset);
407047 offset += (sizeof(page_offset_t) * vectors_in_segment);
407048
407050 uncompressed_sizes = reinterpret_cast<uncompressed_size_t *>(base + offset);
407051 offset += (sizeof(uncompressed_size_t) * vectors_in_segment);
407052
407054 compressed_sizes = reinterpret_cast<compressed_size_t *>(base + offset);
407055 offset += (sizeof(compressed_size_t) * vectors_in_segment);
407056
407057 buffer_collection.buffer_states[0].offset = offset;
407058 }
static T AlignValue(T n)
Align value (ceiling) (not for pointer types).
Definition duckdb.hpp:2126
idx_t vector_in_segment_count
The amount of vectors we've seen in the current segment.
Definition duckdb.cpp:407064
idx_t total_vectors_in_segment
Amount of vectors in this segment, determined during analyze.
Definition duckdb.cpp:407062
Here is the call graph for this function:

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