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

Index (de)serialization information. More...

#include <duckdb.hpp>

Collaboration diagram for duckdb::IndexStorageInfo:

Public Member Functions

 IndexStorageInfo (const string &name)
 IndexStorageInfo (const IndexStorageInfo &)=delete
 Disable copy constructor and copy assignment, this type's lifetime is explicitly managed.
IndexStorageInfo & operator= (const IndexStorageInfo &)=delete
 IndexStorageInfo (IndexStorageInfo &&)=default
IndexStorageInfo & operator= (IndexStorageInfo &&)=default
bool IsValid () const
 Returns true, if IndexStorageInfo holds information to deserialize an index. Note that the name can be misleading - any index that is empty (no nodes, etc.) might also have neither a root_block_ptr nor allocator_infos. Ensure that your index constructor initializes an empty index correctly without the need for these fields.
void Serialize (Serializer &serializer) const

Static Public Member Functions

static IndexStorageInfo Deserialize (Deserializer &deserializer)

Public Attributes

string name
 The name.
idx_t root
 The storage root.
case_insensitive_map_t< Value > options
 Any index specialization can provide additional key-Value settings via this map.
vector< FixedSizeAllocatorInfo > allocator_infos
 Serialization information for fixed-size allocator memory.
vector< vector< IndexBufferInfo > > buffers
 Contains all buffer pointers and their allocation size for serializing to the WAL. First dimension: All fixed-size allocators. Second dimension: The buffers of each fixed-size allocator.
BlockPointer root_block_ptr
 The root block pointer of the index. Necessary to support older storage files.

Detailed Description

Index (de)serialization information.

Constructor & Destructor Documentation

◆ IndexStorageInfo() [1/2]

duckdb::IndexStorageInfo::IndexStorageInfo ( )
inline
47518{};

◆ IndexStorageInfo() [2/2]

duckdb::IndexStorageInfo::IndexStorageInfo ( const string & name)
inlineexplicit
47519: name(name) {};
string name
The name.
Definition duckdb.hpp:47529

Member Function Documentation

◆ IsValid()

bool duckdb::IndexStorageInfo::IsValid ( ) const
inline

Returns true, if IndexStorageInfo holds information to deserialize an index. Note that the name can be misleading - any index that is empty (no nodes, etc.) might also have neither a root_block_ptr nor allocator_infos. Ensure that your index constructor initializes an empty index correctly without the need for these fields.

47550 {
47551 return root_block_ptr.IsValid() || !allocator_infos.empty();
47552 }
vector< FixedSizeAllocatorInfo > allocator_infos
Serialization information for fixed-size allocator memory.
Definition duckdb.hpp:47535
BlockPointer root_block_ptr
The root block pointer of the index. Necessary to support older storage files.
Definition duckdb.hpp:47543

◆ Serialize()

void duckdb::IndexStorageInfo::Serialize ( Serializer & serializer) const
419373 {
419374 serializer.WritePropertyWithDefault<string>(100, "name", name);
419375 serializer.WritePropertyWithDefault<idx_t>(101, "root", root);
419376 serializer.WritePropertyWithDefault<vector<FixedSizeAllocatorInfo>>(102, "allocator_infos", allocator_infos);
419377 serializer.WritePropertyWithDefault<case_insensitive_map_t<Value>>(103, "options", options, case_insensitive_map_t<Value>());
419378}
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
case_insensitive_map_t< Value > options
Any index specialization can provide additional key-Value settings via this map.
Definition duckdb.hpp:47533
idx_t root
The storage root.
Definition duckdb.hpp:47531

◆ Deserialize()

IndexStorageInfo duckdb::IndexStorageInfo::Deserialize ( Deserializer & deserializer)
static
419380 {
419381 IndexStorageInfo result;
419382 deserializer.ReadPropertyWithDefault<string>(100, "name", result.name);
419383 deserializer.ReadPropertyWithDefault<idx_t>(101, "root", result.root);
419384 deserializer.ReadPropertyWithDefault<vector<FixedSizeAllocatorInfo>>(102, "allocator_infos", result.allocator_infos);
419385 deserializer.ReadPropertyWithExplicitDefault<case_insensitive_map_t<Value>>(103, "options", result.options, case_insensitive_map_t<Value>());
419386 return result;
419387}

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