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

Public Member Functions

 TopNBoundaryValue (const PhysicalTopN &op)
string GetBoundaryValue ()
void UpdateValue (string_t boundary_val)

Public Attributes

const PhysicalTopN & op
mutex lock
string boundary_value
bool is_set = false
Vector boundary_vector
OrderModifiers boundary_modifiers

Constructor & Destructor Documentation

◆ TopNBoundaryValue()

duckdb::TopNBoundaryValue::TopNBoundaryValue ( const PhysicalTopN & op)
inlineexplicit
190897 : op(op), boundary_vector(op.orders[0].expression->return_type),
190898 boundary_modifiers(op.orders[0].type, op.orders[0].null_order) {
190899 }

Member Function Documentation

◆ GetBoundaryValue()

string duckdb::TopNBoundaryValue::GetBoundaryValue ( )
inline
190908 {
190909 lock_guard<mutex> l(lock);
190910 return boundary_value;
190911 }

◆ UpdateValue()

void duckdb::TopNBoundaryValue::UpdateValue ( string_t boundary_val)
inline
190913 {
190914 unique_lock<mutex> l(lock);
190915 if (!is_set || boundary_val < string_t(boundary_value)) {
190916 boundary_value = boundary_val.GetString();
190917 is_set = true;
190918 if (op.dynamic_filter) {
190919 CreateSortKeyHelpers::DecodeSortKey(boundary_val, boundary_vector, 0, boundary_modifiers);
190920 auto new_dynamic_value = boundary_vector.GetValue(0);
190921 l.unlock();
190922 op.dynamic_filter->SetValue(std::move(new_dynamic_value));
190923 }
190924 }
190925 }

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