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::FSSTScanState Struct Reference
Inheritance diagram for duckdb::FSSTScanState:
Collaboration diagram for duckdb::FSSTScanState:

Public Member Functions

 FSSTScanState (const idx_t string_block_limit)
void StoreLastDelta (uint32_t value, int64_t row)
void ResetStoredDelta ()
string_t DecompressString (StringDictionaryContainer dict, data_ptr_t baseptr, const bp_delta_offsets_t &offsets, idx_t index, VectorStringBuffer &str_buffer) const
Public Member Functions inherited from duckdb::SegmentScanState
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Public Attributes

buffer_ptr< void > duckdb_fsst_decoder
void * duckdb_fsst_decoder_ptr = nullptr
vector< unsigned char > decompress_buffer
bitpacking_width_t current_width
uint32_t last_known_index
int64_t last_known_row
unsafe_unique_array< uint32_t > bitunpack_buffer
idx_t bitunpack_buffer_capacity = 0
unsafe_unique_array< uint32_t > delta_decode_buffer
idx_t delta_decode_capacity = 0
bool all_values_inlined = false
Public Attributes inherited from duckdb::StringScanState
BufferHandle handle

Constructor & Destructor Documentation

◆ FSSTScanState()

duckdb::FSSTScanState::FSSTScanState ( const idx_t string_block_limit)
inlineexplicit
401414 {
401415 ResetStoredDelta();
401416 decompress_buffer.resize(string_block_limit + 1);
401417 }

Member Function Documentation

◆ StoreLastDelta()

void duckdb::FSSTScanState::StoreLastDelta ( uint32_t value,
int64_t row )
inline
401436 {
401437 last_known_index = value;
401438 last_known_row = row;
401439 }

◆ ResetStoredDelta()

void duckdb::FSSTScanState::ResetStoredDelta ( )
inline
401440 {
401441 last_known_index = 0;
401442 last_known_row = -1;
401443 }

◆ DecompressString()

string_t duckdb::FSSTScanState::DecompressString ( StringDictionaryContainer dict,
data_ptr_t baseptr,
const bp_delta_offsets_t & offsets,
idx_t index,
VectorStringBuffer & str_buffer ) const
inline
401446 {
401447 uint32_t str_len = bitunpack_buffer[offsets.scan_offset + index];
401448 auto str_ptr = FSSTStorage::FetchStringPointer(
401449 dict, baseptr,
401450 UnsafeNumericCast<int32_t>(delta_decode_buffer[index + offsets.unused_delta_decoded_values]));
401451
401452 if (str_len == 0) {
401453 return string_t(nullptr, 0);
401454 }
401455 if (all_values_inlined) {
401456 return FSSTPrimitives::DecompressInlinedValue(duckdb_fsst_decoder_ptr, str_ptr, str_len);
401457 } else {
401458 return FSSTPrimitives::DecompressValue(duckdb_fsst_decoder_ptr, str_buffer, str_ptr, str_len);
401459 }
401460 }
index
::uint32_t uint32_t

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