Struct star::LayerMetadataRegistry¶
ClassList > star > LayerMetadataRegistry
Per-layer metadata registry using data-oriented design (Structure of Arrays). More...
#include <stards.h>
Public Attributes¶
| Type | Name |
|---|---|
| std::vector< uint64_t > | block_positions |
| std::vector< uint32_t > | block_sizes |
| std::vector< CompressionAlgorithm > | compressions |
| std::vector< std::unordered_set< uint16_t > > | key_indices |
| std::vector< std::string > | layer_names |
| std::unordered_map< std::string, size_t > | name_to_layer_index |
Public Functions¶
| Type | Name |
|---|---|
| size_t | add_layer (const std::string & layer_name) Add a new layer to the registry. |
| bool | contains_layer (const std::string & layer_name) const Check if layer exists. |
| size_t | get_layer_index (const std::string & layer_name) const Get layer index by name. |
Detailed Description¶
Stores metadata about each layer's metadata block for lazy loading. Each layer has its own independent STARMeta block in the file.
Public Attributes Documentation¶
variable block_positions¶
variable block_sizes¶
variable compressions¶
variable key_indices¶
variable layer_names¶
variable name_to_layer_index¶
Public Functions Documentation¶
function add_layer¶
Add a new layer to the registry.
function contains_layer¶
Check if layer exists.
function get_layer_index¶
Get layer index by name.
Returns:
size_t index into the registry
The documentation for this class was generated from the following file StarDS/include/stards.h