2 #ifndef CondCore_CondDB_KeyList_h 3 #define CondCore_CondDB_KeyList_h 31 namespace persistency {
40 void setKeys(
const std::vector<unsigned long long>&
keys);
46 throwException(
"Index outside the bounds of the key array.",
"KeyList::getUsingIndex");
51 return deserialize<T>(
i.first,
i.second.first,
i.second.second);
59 return deserialize<T>(
item.first,
item.second.first,
item.second.second);
66 std::pair<std::string, std::pair<cond::Binary, cond::Binary>>
loadFromDB(
unsigned long long key)
const;
70 std::vector<unsigned long long>
m_keys;
71 std::vector<std::pair<std::string, std::pair<cond::Binary, cond::Binary>>>
m_data;
std::vector< unsigned long long > m_keys
static std::string to_string(const XMLCh *ch)
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
std::vector< std::pair< std::string, std::pair< cond::Binary, cond::Binary > > > m_data
void setKeys(const std::vector< unsigned long long > &keys)
determines which keys to use to read from the DB. Should only be used by PoolDBESSource ...
size_t size() const
Number of keys based on container passed to setKeys.
std::shared_ptr< T > getUsingIndex(size_t n) const
Retrieves the pre-fetched data. The index is the same order as the keys used in setKeys.
std::pair< std::string, std::pair< cond::Binary, cond::Binary > > loadFromDB(unsigned long long key) const
void init(IOVProxy iovProxy)
Called by PoolDBESSource.
void throwException(const std::string &message, const std::string &methodName)
std::shared_ptr< T > getUsingKey(unsigned long long key) const