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

Static Public Member Functions

static unique_ptr< ArrowTypeGetType (ClientContext &context, const ArrowSchema &schema, const ArrowSchemaMetadata &schema_metadata)
 
static void PopulateSchema (DuckDBArrowSchemaHolder &root_holder, ArrowSchema &schema, const LogicalType &type, ClientContext &context, const ArrowTypeExtension &extension)
 

Member Function Documentation

◆ GetType()

static unique_ptr< ArrowType > duckdb::ArrowBignum::GetType ( ClientContext context,
const ArrowSchema schema,
const ArrowSchemaMetadata schema_metadata 
)
inlinestatic
45292 {
45293 const auto format = string(schema.format);
45294 if (format == "z") {
45295 return make_uniq<ArrowType>(LogicalType::BIGNUM, make_uniq<ArrowStringInfo>(ArrowVariableSizeType::NORMAL));
45296 } else if (format == "Z") {
45297 return make_uniq<ArrowType>(LogicalType::BIGNUM,
45298 make_uniq<ArrowStringInfo>(ArrowVariableSizeType::SUPER_SIZE));
45299 }
45300 throw InvalidInputException("Arrow extension type \"%s\" not supported for Bignum", format.c_str());
45301 }
const char * format
Array type description.
Definition duckdb.hpp:11265

◆ PopulateSchema()

static void duckdb::ArrowBignum::PopulateSchema ( DuckDBArrowSchemaHolder root_holder,
ArrowSchema schema,
const LogicalType type,
ClientContext context,
const ArrowTypeExtension extension 
)
inlinestatic
45304 {
45305 const ArrowSchemaMetadata schema_metadata = ArrowSchemaMetadata::NonCanonicalType(
45306 extension.GetInfo().GetTypeName(), extension.GetInfo().GetVendorName());
45307 root_holder.metadata_info.emplace_back(schema_metadata.SerializeMetadata());
45308 schema.metadata = root_holder.metadata_info.back().get();
45309 const auto options = context.GetClientProperties();
45310 if (options.arrow_offset_size == ArrowOffsetSize::LARGE) {
45311 schema.format = "Z";
45312 } else {
45313 schema.format = "z";
45314 }
45315 }
static ArrowSchemaMetadata NonCanonicalType(const string &type_name, const string &vendor_name)
Creates the metadata based on an extension name.
Definition duckdb.cpp:46324

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