Skip to content

Class star::MetadataAccessor

ClassList > star > MetadataAccessor

Accessor for metadata operations. More...

  • #include <stards.h>

Public Functions

Type Name
MetadataAccessor (StarDataset * store)
void clear ()
bool contains (const std::string & key) const
std::shared_ptr< MetadataValue > get (const std::string & key)
std::map< std::string, MetadataValue > get_all ()
std::map< std::string, MetadataValue > get_batch (const std::vector< std::string > & keys)
void put (const std::string & key, const V & value)
void put_batch (const std::map< std::string, V > & values)
void remove (const std::string & key)

Detailed Description

Provides explicit metadata API via store.meta.put() and store.meta.get() for clear intent when working with metadata block items.

Public Functions Documentation

function MetadataAccessor

inline explicit star::MetadataAccessor::MetadataAccessor (
    StarDataset * store
) 

function clear

inline void star::MetadataAccessor::clear () 

function contains

inline bool star::MetadataAccessor::contains (
    const std::string & key
) const

function get

inline std::shared_ptr< MetadataValue > star::MetadataAccessor::get (
    const std::string & key
) 

function get_all

inline std::map< std::string, MetadataValue > star::MetadataAccessor::get_all () 

function get_batch

inline std::map< std::string, MetadataValue > star::MetadataAccessor::get_batch (
    const std::vector< std::string > & keys
) 

function put

template<typename V>
void star::MetadataAccessor::put (
    const std::string & key,
    const V & value
) 

function put_batch

template<typename V>
void star::MetadataAccessor::put_batch (
    const std::map< std::string, V > & values
) 

function remove

inline void star::MetadataAccessor::remove (
    const std::string & key
) 


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