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::ArrowBit 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::ArrowBit::GetType ( ClientContext context,
const ArrowSchema schema,
const ArrowSchemaMetadata schema_metadata 
)
inlinestatic
45264 {
45265 const auto format = string(schema.format);
45266 if (format == "z") {
45267 return make_uniq<ArrowType>(LogicalType::BIT, make_uniq<ArrowStringInfo>(ArrowVariableSizeType::NORMAL));
45268 } else if (format == "Z") {
45269 return make_uniq<ArrowType>(LogicalType::BIT,
45270 make_uniq<ArrowStringInfo>(ArrowVariableSizeType::SUPER_SIZE));
45271 }
45272 throw InvalidInputException("Arrow extension type \"%s\" not supported for BIT type", format.c_str());
45273 }
const char * format
Array type description.
Definition duckdb.hpp:11265

◆ PopulateSchema()

static void duckdb::ArrowBit::PopulateSchema ( DuckDBArrowSchemaHolder root_holder,
ArrowSchema schema,
const LogicalType type,
ClientContext context,
const ArrowTypeExtension extension 
)
inlinestatic
45276 {
45277 const ArrowSchemaMetadata schema_metadata = ArrowSchemaMetadata::NonCanonicalType(
45278 extension.GetInfo().GetTypeName(), extension.GetInfo().GetVendorName());
45279 root_holder.metadata_info.emplace_back(schema_metadata.SerializeMetadata());
45280 schema.metadata = root_holder.metadata_info.back().get();
45281 const auto options = context.GetClientProperties();
45282 if (options.arrow_offset_size == ArrowOffsetSize::LARGE) {
45283 schema.format = "Z";
45284 } else {
45285 schema.format = "z";
45286 }
45287 }
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: