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::CastFunctionSet Class Reference
Collaboration diagram for duckdb::CastFunctionSet:

Public Member Functions

 CastFunctionSet (DBConfig &config)
 
DUCKDB_API BoundCastInfo GetCastFunction (const LogicalType &source, const LogicalType &target, GetCastFunctionInput &input)
 
DUCKDB_API int64_t ImplicitCastCost (optional_ptr< ClientContext > context, const LogicalType &source, const LogicalType &target)
 
DUCKDB_API void RegisterCastFunction (const LogicalType &source, const LogicalType &target, BoundCastInfo function, int64_t implicit_cast_cost=-1)
 Register a new cast function from source to target.
 
DUCKDB_API void RegisterCastFunction (const LogicalType &source, const LogicalType &target, bind_cast_function_t bind, int64_t implicit_cast_cost=-1)
 

Static Public Member Functions

static DUCKDB_API CastFunctionSetGet (ClientContext &context)
 
static DUCKDB_API CastFunctionSetGet (DatabaseInstance &db)
 
static DUCKDB_API int64_t ImplicitCastCost (ClientContext &context, const LogicalType &source, const LogicalType &target)
 
static DUCKDB_API int64_t ImplicitCastCost (DatabaseInstance &db, const LogicalType &source, const LogicalType &target)
 

Private Member Functions

void RegisterCastFunction (const LogicalType &source, const LogicalType &target, MapCastNode node)
 

Private Attributes

optional_ptr< DBConfigconfig
 
vector< BindCastFunctionbind_functions
 
optional_ptr< MapCastInfomap_info
 If any custom cast functions have been defined using RegisterCastFunction, this holds the map.
 

Member Function Documentation

◆ GetCastFunction()

DUCKDB_API BoundCastInfo duckdb::CastFunctionSet::GetCastFunction ( const LogicalType source,
const LogicalType target,
GetCastFunctionInput input 
)

Returns a cast function (from source -> target) Note that this always returns a function - since a cast is ALWAYS possible if the value is NULL

◆ ImplicitCastCost()

DUCKDB_API int64_t duckdb::CastFunctionSet::ImplicitCastCost ( optional_ptr< ClientContext context,
const LogicalType source,
const LogicalType target 
)

Returns the implicit cast cost of casting from source -> target -1 means an implicit cast is not possible


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