Skip to content

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

std::vector<uint64_t> star::LayerMetadataRegistry::block_positions;

variable block_sizes

std::vector<uint32_t> star::LayerMetadataRegistry::block_sizes;

variable compressions

std::vector<CompressionAlgorithm> star::LayerMetadataRegistry::compressions;

variable key_indices

std::vector<std::unordered_set<uint16_t> > star::LayerMetadataRegistry::key_indices;

variable layer_names

std::vector<std::string> star::LayerMetadataRegistry::layer_names;

variable name_to_layer_index

std::unordered_map<std::string, size_t> star::LayerMetadataRegistry::name_to_layer_index;

Public Functions Documentation

function add_layer

Add a new layer to the registry.

inline size_t star::LayerMetadataRegistry::add_layer (
    const std::string & layer_name
) 


function contains_layer

Check if layer exists.

inline bool star::LayerMetadataRegistry::contains_layer (
    const std::string & layer_name
) const


function get_layer_index

Get layer index by name.

inline size_t star::LayerMetadataRegistry::get_layer_index (
    const std::string & layer_name
) const

Returns:

size_t index into the registry



The documentation for this class was generated from the following file StarDS/include/stards.h