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

Static Public Member Functions

static void AddInPlace (Vector &left, int64_t delta, idx_t count)
 left += delta
 
static void IsNotNull (Vector &arg, Vector &result, idx_t count)
 result = IS NOT NULL(input)
 
static void IsNull (Vector &input, Vector &result, idx_t count)
 result = IS NULL (input)
 
static bool HasNull (Vector &input, idx_t count)
 
static bool HasNotNull (Vector &input, idx_t count)
 
static idx_t CountNotNull (Vector &input, const idx_t count)
 Count the number of not-NULL values.
 
static void And (Vector &left, Vector &right, Vector &result, idx_t count)
 
static void Or (Vector &left, Vector &right, Vector &result, idx_t count)
 
static void Not (Vector &left, Vector &result, idx_t count)
 
static void Equals (Vector &left, Vector &right, Vector &result, idx_t count)
 
static void NotEquals (Vector &left, Vector &right, Vector &result, idx_t count)
 
static void GreaterThan (Vector &left, Vector &right, Vector &result, idx_t count)
 
static void GreaterThanEquals (Vector &left, Vector &right, Vector &result, idx_t count)
 
static void LessThan (Vector &left, Vector &right, Vector &result, idx_t count)
 
static void LessThanEquals (Vector &left, Vector &right, Vector &result, idx_t count)
 
static void DistinctFrom (Vector &left, Vector &right, Vector &result, idx_t count)
 
static void NotDistinctFrom (Vector &left, Vector &right, Vector &result, idx_t count)
 
static void DistinctGreaterThan (Vector &left, Vector &right, Vector &result, idx_t count)
 
static void DistinctGreaterThanEquals (Vector &left, Vector &right, Vector &result, idx_t count)
 
static void DistinctLessThan (Vector &left, Vector &right, Vector &result, idx_t count)
 
static void DistinctLessThanEquals (Vector &left, Vector &right, Vector &result, idx_t count)
 
static idx_t Equals (Vector &left, Vector &right, optional_ptr< const SelectionVector > sel, idx_t count, optional_ptr< SelectionVector > true_sel, optional_ptr< SelectionVector > false_sel, optional_ptr< ValidityMask > null_mask=nullptr)
 
static idx_t NotEquals (Vector &left, Vector &right, optional_ptr< const SelectionVector > sel, idx_t count, optional_ptr< SelectionVector > true_sel, optional_ptr< SelectionVector > false_sel, optional_ptr< ValidityMask > null_mask=nullptr)
 
static idx_t GreaterThan (Vector &left, Vector &right, optional_ptr< const SelectionVector > sel, idx_t count, optional_ptr< SelectionVector > true_sel, optional_ptr< SelectionVector > false_sel, optional_ptr< ValidityMask > null_mask=nullptr)
 
static idx_t GreaterThanEquals (Vector &left, Vector &right, optional_ptr< const SelectionVector > sel, idx_t count, optional_ptr< SelectionVector > true_sel, optional_ptr< SelectionVector > false_sel, optional_ptr< ValidityMask > null_mask=nullptr)
 
static idx_t LessThan (Vector &left, Vector &right, optional_ptr< const SelectionVector > sel, idx_t count, optional_ptr< SelectionVector > true_sel, optional_ptr< SelectionVector > false_sel, optional_ptr< ValidityMask > null_mask=nullptr)
 
static idx_t LessThanEquals (Vector &left, Vector &right, optional_ptr< const SelectionVector > sel, idx_t count, optional_ptr< SelectionVector > true_sel, optional_ptr< SelectionVector > false_sel, optional_ptr< ValidityMask > null_mask=nullptr)
 
static idx_t DistinctFrom (Vector &left, Vector &right, optional_ptr< const SelectionVector > sel, idx_t count, optional_ptr< SelectionVector > true_sel, optional_ptr< SelectionVector > false_sel)
 
static idx_t NotDistinctFrom (Vector &left, Vector &right, optional_ptr< const SelectionVector > sel, idx_t count, optional_ptr< SelectionVector > true_sel, optional_ptr< SelectionVector > false_sel)
 
static idx_t DistinctGreaterThan (Vector &left, Vector &right, optional_ptr< const SelectionVector > sel, idx_t count, optional_ptr< SelectionVector > true_sel, optional_ptr< SelectionVector > false_sel, optional_ptr< ValidityMask > null_mask=nullptr)
 
static idx_t DistinctGreaterThanEquals (Vector &left, Vector &right, optional_ptr< const SelectionVector > sel, idx_t count, optional_ptr< SelectionVector > true_sel, optional_ptr< SelectionVector > false_sel, optional_ptr< ValidityMask > null_mask=nullptr)
 
static idx_t DistinctLessThan (Vector &left, Vector &right, optional_ptr< const SelectionVector > sel, idx_t count, optional_ptr< SelectionVector > true_sel, optional_ptr< SelectionVector > false_sel, optional_ptr< ValidityMask > null_mask=nullptr)
 
static idx_t DistinctLessThanEquals (Vector &left, Vector &right, optional_ptr< const SelectionVector > sel, idx_t count, optional_ptr< SelectionVector > true_sel, optional_ptr< SelectionVector > false_sel, optional_ptr< ValidityMask > null_mask=nullptr)
 
static idx_t DistinctGreaterThanNullsFirst (Vector &left, Vector &right, optional_ptr< const SelectionVector > sel, idx_t count, optional_ptr< SelectionVector > true_sel, optional_ptr< SelectionVector > false_sel, optional_ptr< ValidityMask > null_mask=nullptr)
 
static idx_t DistinctLessThanNullsFirst (Vector &left, Vector &right, optional_ptr< const SelectionVector > sel, idx_t count, optional_ptr< SelectionVector > true_sel, optional_ptr< SelectionVector > false_sel, optional_ptr< ValidityMask > null_mask=nullptr)
 
static idx_t NestedNotEquals (Vector &left, Vector &right, optional_ptr< const SelectionVector > sel, idx_t count, optional_ptr< SelectionVector > true_sel, optional_ptr< SelectionVector > false_sel, optional_ptr< ValidityMask > null_mask=nullptr)
 
static idx_t NestedEquals (Vector &left, Vector &right, optional_ptr< const SelectionVector > sel, idx_t count, optional_ptr< SelectionVector > true_sel, optional_ptr< SelectionVector > false_sel, optional_ptr< ValidityMask > null_mask=nullptr)
 
static void Hash (Vector &input, Vector &hashes, idx_t count)
 
static void Hash (Vector &input, Vector &hashes, const SelectionVector &rsel, idx_t count)
 
static void CombineHash (Vector &hashes, Vector &input, idx_t count)
 
static void CombineHash (Vector &hashes, Vector &input, const SelectionVector &rsel, idx_t count)
 
static void GenerateSequence (Vector &result, idx_t count, int64_t start=0, int64_t increment=1)
 
static void GenerateSequence (Vector &result, idx_t count, const SelectionVector &sel, int64_t start=0, int64_t increment=1)
 
static DUCKDB_API bool TryCast (CastFunctionSet &set, GetCastFunctionInput &input, Vector &source, Vector &result, idx_t count, string *error_message, bool strict=false, const bool nullify_parent=false)
 
static DUCKDB_API bool DefaultTryCast (Vector &source, Vector &result, idx_t count, string *error_message, bool strict=false)
 
static DUCKDB_API bool TryCast (ClientContext &context, Vector &source, Vector &result, idx_t count, string *error_message, bool strict=false, const bool nullify_parent=false)
 
static DUCKDB_API void Cast (ClientContext &context, Vector &source, Vector &result, idx_t count, bool strict=false)
 Cast the data from the source type to the target type. Throws an exception if the cast fails.
 
static DUCKDB_API void DefaultCast (Vector &source, Vector &result, idx_t count, bool strict=false)
 
static void Copy (const Vector &source, Vector &target, idx_t source_count, idx_t source_offset, idx_t target_offset)
 
static void Copy (const Vector &source, Vector &target, const SelectionVector &sel, idx_t source_count, idx_t source_offset, idx_t target_offset)
 
static void Copy (const Vector &source, Vector &target, const SelectionVector &sel, idx_t source_count, idx_t source_offset, idx_t target_offset, idx_t copy_count)
 
static void WriteToStorage (Vector &source, idx_t count, data_ptr_t target)
 
static void ReadFromStorage (data_ptr_t source, idx_t count, Vector &result)
 

Member Function Documentation

◆ TryCast()

static DUCKDB_API bool duckdb::VectorOperations::TryCast ( CastFunctionSet set,
GetCastFunctionInput input,
Vector source,
Vector result,
idx_t  count,
string *  error_message,
bool  strict = false,
const bool  nullify_parent = false 
)
static

Cast the data from the source type to the target type. Any elements that could not be converted are turned into NULLs. If any elements cannot be converted, returns false and fills in the error_message. If no error message is provided, an exception is thrown instead.


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