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

Public Types

using RETURN_TYPE = CompressionType

Static Public Member Functions

static void OnSet (SettingCallbackInfo &info, Value &input)

Static Public Attributes

static constexpr const char * Name = "force_compression"
static constexpr const char * Description = "DEBUG SETTING: forces a specific compression method to be used"
static constexpr const char * InputType = "VARCHAR"
static constexpr const char * DefaultValue = "auto"
static constexpr SettingScopeTarget Scope = SettingScopeTarget::GLOBAL_ONLY
static constexpr idx_t SettingIndex = 51

Member Function Documentation

◆ OnSet()

void duckdb::ForceCompressionSetting::OnSet ( SettingCallbackInfo & info,
Value & input )
static
302451 {
302452 auto compression = StringUtil::Lower(input.ToString());
302453 if (compression == "none" || compression == "auto") {
302454 input = "auto";
302455 } else {
302456 auto compression_type = EnumUtil::FromString<CompressionType>(compression);
302457 if (compression_type == CompressionType::COMPRESSION_CONSTANT ||
302458 compression_type == CompressionType::COMPRESSION_EMPTY) {
302459 throw ParserException("auto / constant cannot be used for force_compression");
302460 }
302461 auto compression_availability_result = CompressionTypeIsAvailable(compression_type);
302462 if (!compression_availability_result.IsAvailable()) {
302463 if (compression_availability_result.IsDeprecated()) {
302464 throw ParserException("Attempted to force a deprecated compression type (%s)",
302465 CompressionTypeToString(compression_type));
302466 } else {
302467 throw ParserException("Attempted to force a compression type that isn't available yet (%s)",
302468 CompressionTypeToString(compression_type));
302469 }
302470 }
302471 }
302472}
static DUCKDB_API string Lower(const string &str)
Convert a string to lowercase.
Definition duckdb.cpp:109630
DUCKDB_API string ToString() const
Convert this value to a string.
Definition duckdb.cpp:133318
CompressionAvailabilityResult CompressionTypeIsAvailable(CompressionType compression_type, optional_ptr< StorageManager > storage_manager)
Definition duckdb.cpp:67573

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