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

Public Member Functions

 DictFSSTAnalyzeState (const CompressionInfo &info)
bool Analyze (Vector &input, idx_t count)
idx_t FinalAnalyze ()
Public Member Functions inherited from duckdb::AnalyzeState
 AnalyzeState (const CompressionInfo &info)
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Public Attributes

idx_t max_string_length = 0
bool contains_nulls = false
idx_t total_string_length = 0
idx_t total_count = 0
Public Attributes inherited from duckdb::AnalyzeState
CompressionInfo info

Constructor & Destructor Documentation

◆ DictFSSTAnalyzeState()

duckdb::dict_fsst::DictFSSTAnalyzeState::DictFSSTAnalyzeState ( const CompressionInfo & info)
explicit
397875 : AnalyzeState(info) {
397876}

Member Function Documentation

◆ Analyze()

bool duckdb::dict_fsst::DictFSSTAnalyzeState::Analyze ( Vector & input,
idx_t count )

This string is too long, we don't want to use DICT_FSST for this rowgroup

397878 {
397879 UnifiedVectorFormat vector_format;
397880 input.ToUnifiedFormat(count, vector_format);
397881 auto strings = vector_format.GetData<string_t>(vector_format);
397882
397883 for (idx_t i = 0; i < count; i++) {
397884 auto idx = vector_format.sel->get_index(i);
397885 if (!vector_format.validity.RowIsValid(i)) {
397886 contains_nulls = true;
397887 } else {
397888 auto &str = strings[idx];
397889 auto str_len = str.GetSize();
397890 total_string_length += str_len;
397891 if (str_len > max_string_length) {
397892 max_string_length = str_len;
397893 }
397894 if (str_len >= DictFSSTCompression::STRING_SIZE_LIMIT) {
397896 return false;
397897 }
397898 }
397899 }
397900 total_count += count;
397901 return true;
397902}
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
Here is the call graph for this function:

◆ FinalAnalyze()

idx_t duckdb::dict_fsst::DictFSSTAnalyzeState::FinalAnalyze ( )
397904 {
397905 return LossyNumericCast<idx_t>((double)total_string_length / 2.0);
397906}

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