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

Public Types

using EXACT_TYPE = typename FloatingToExact<T>::TYPE

Public Member Functions

 AlpAnalyzeState (const CompressionInfo &info)
void FlushSegment ()
void FlushVector (idx_t vector_size)
bool HasEnoughSpace (idx_t vector_size)
idx_t TotalUsedBytes () const
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 total_bytes_used = 0
idx_t current_bytes_used_in_segment = 0
idx_t vectors_sampled_count = 0
idx_t total_values_count = 0
idx_t vectors_count = 0
vector< vector< T > > rowgroup_sample
vector< vector< T > > complete_vectors_sampled
alp::AlpCompressionData< T, true > compression_data
idx_t storage_version = 0
Public Attributes inherited from duckdb::AnalyzeState
CompressionInfo info

Constructor & Destructor Documentation

◆ AlpAnalyzeState()

template<class T>
duckdb::AlpAnalyzeState< T >::AlpAnalyzeState ( const CompressionInfo & info)
inlineexplicit
393050 : AnalyzeState(info), compression_data() {
393051 }

Member Function Documentation

◆ FlushSegment()

template<class T>
void duckdb::AlpAnalyzeState< T >::FlushSegment ( )
inline
393065 {
393066 // We add the size of the segment header (the pointer to the metadata)
393067 total_bytes_used += current_bytes_used_in_segment + AlpConstants::METADATA_POINTER_SIZE;
393068 current_bytes_used_in_segment = 0;
393069 }
Definition duckdb.cpp:393046

◆ FlushVector()

template<class T>
void duckdb::AlpAnalyzeState< T >::FlushVector ( idx_t vector_size)
inline
393071 {
393072 current_bytes_used_in_segment += vector_size;
393073 compression_data.Reset();
393074 }

◆ HasEnoughSpace()

template<class T>
bool duckdb::AlpAnalyzeState< T >::HasEnoughSpace ( idx_t vector_size)
inline
393077 {
393078 idx_t bytes_to_be_used = AlignValue(current_bytes_used_in_segment + vector_size);
393079 // We have enough space if the already used space + the required space for a new vector
393080 // does not exceed the space of the block - the segment header (the pointer to the metadata)
393081 return bytes_to_be_used <= (info.GetBlockSize() - AlpConstants::METADATA_POINTER_SIZE);
393082 }
static T AlignValue(T n)
Align value (ceiling) (not for pointer types).
Definition duckdb.hpp:2126

◆ TotalUsedBytes()

template<class T>
idx_t duckdb::AlpAnalyzeState< T >::TotalUsedBytes ( ) const
inline
393084 {
393085 return AlignValue(total_bytes_used);
393086 }

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