Index (de)serialization information.
More...
#include <duckdb.hpp>
|
| | 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 |
|
|
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.
|
Index (de)serialization information.
◆ IndexStorageInfo() [1/2]
| duckdb::IndexStorageInfo::IndexStorageInfo |
( |
| ) |
|
|
inline |
◆ IndexStorageInfo() [2/2]
| duckdb::IndexStorageInfo::IndexStorageInfo |
( |
const string & | name | ) |
|
|
inlineexplicit |
string name
The name.
Definition duckdb.hpp:47529
◆ 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 {
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: