6 namespace persistency {
23 std::sort(
m_keys.begin(),
m_keys.end(), std::less<unsigned long long>());
27 for (
size_t i = 0;
i <
m_keys.size(); ++
i) {
30 if (
p != keyIovs.
end()) {
41 std::pair<std::string, std::pair<cond::Binary, cond::Binary> >
item;
51 auto p = keyIovs.
find(key);
52 if (
p != keyIovs.
end()) {
53 if (!s.
fetchPayloadData((*p).payloadId, item.first, item.second.first, item.second.second))
56 throwException(
"Payload for key " + std::to_string(key) +
" has not been found.",
"KeyList::loadFromDB");
std::vector< unsigned long long > m_keys
Iterator find(cond::Time_t time) const
void start(bool readOnly=true)
Transaction & transaction()
void throwException(const std::string &message, const std::string &methodName)
std::pair< std::string, std::pair< cond::Binary, cond::Binary > > loadFromDB(unsigned long long key) const
tuple key
prepare the HTCondor submission files and eventually submit them
bool fetchPayloadData(const cond::Hash &payloadHash, std::string &payloadType, cond::Binary &payloadData, cond::Binary &streamerInfoData)
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 ...
void init(IOVProxy iovProxy)
Called by PoolDBESSource.
void throwException(const std::string &message, const std::string &methodName)
const std::shared_ptr< SessionImpl > & session() const