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

#include <duckdb.hpp>

Static Public Member Functions

static hugeint_t Get (const Value &value)

Detailed Description

Return the internal integral value for any type that is stored as an integral value internally This can be used on values of type integer, uinteger, but also date, timestamp, decimal, etc

Member Function Documentation

◆ Get()

hugeint_t duckdb::IntegralValue::Get ( const Value & value)
static
133604 {
133605 switch (value.type().InternalType()) {
133606 case PhysicalType::INT8:
133607 return TinyIntValue::Get(value);
133608 case PhysicalType::INT16:
133609 return SmallIntValue::Get(value);
133610 case PhysicalType::INT32:
133611 return IntegerValue::Get(value);
133612 case PhysicalType::INT64:
133613 return BigIntValue::Get(value);
133614 case PhysicalType::INT128:
133615 return HugeIntValue::Get(value);
133616 case PhysicalType::UINT8:
133617 return UTinyIntValue::Get(value);
133619 return USmallIntValue::Get(value);
133621 return UIntegerValue::Get(value);
133623 return NumericCast<int64_t>(UBigIntValue::Get(value));
133624 case PhysicalType::UINT128:
133625 return static_cast<hugeint_t>(UhugeIntValue::Get(value));
133626 default:
133627 throw InternalException("Invalid internal type \"%s\" for IntegralValue::Get", value.type().ToString());
133628 }
133629}
@ UINT32
Unsigned 32-bit little-endian integer.
Definition duckdb.hpp:2758
@ UINT16
Unsigned 16-bit little-endian integer.
Definition duckdb.hpp:2752
@ INT64
Signed 64-bit little-endian integer.
Definition duckdb.hpp:2767
@ INT16
Signed 16-bit little-endian integer.
Definition duckdb.hpp:2755
@ INT32
Signed 32-bit little-endian integer.
Definition duckdb.hpp:2761
@ UINT64
Unsigned 64-bit little-endian integer.
Definition duckdb.hpp:2764
@ UINT8
Unsigned 8-bit little-endian integer.
Definition duckdb.hpp:2746
@ INT8
Signed 8-bit little-endian integer.
Definition duckdb.hpp:2749

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