#include <IOVProxy.h>
Classes | |
class | Iterator |
Public Types | |
typedef std::vector < std::tuple< cond::Time_t, cond::Hash > > | IOVContainer |
Public Member Functions | |
Iterator | begin () const |
Iterator | end () const |
cond::Time_t | endOfValidity () const |
Iterator | find (cond::Time_t time) |
cond::Iov_t | getInterval (cond::Time_t time) |
cond::Iov_t | getLast () |
std::tuple< std::string, boost::posix_time::ptime, boost::posix_time::ptime > | getMetadata () const |
IOVProxy () | |
IOVProxy (const std::shared_ptr< SessionImpl > &session) | |
IOVProxy (const IOVProxy &rhs) | |
bool | isEmpty () const |
cond::Time_t | lastValidatedTime () const |
void | load (const std::string &tag, bool full=false) |
std::pair< cond::Time_t, cond::Time_t > | loadedGroup () const |
int | loadedSize () const |
size_t | numberOfQueries () const |
IOVProxy & | operator= (const IOVProxy &rhs) |
std::string | payloadObjectType () const |
void | reload () |
void | reset () |
int | sequenceSize () const |
const std::shared_ptr < SessionImpl > & | session () const |
cond::SynchronizationType | synchronizationType () const |
std::string | tag () const |
cond::TimeType | timeType () const |
Private Member Functions | |
void | checkTransaction (const std::string &ctx) const |
void | fetchSequence (cond::Time_t lowerGroup, cond::Time_t higherGroup) |
Private Attributes | |
std::shared_ptr< IOVProxyData > | m_data |
std::shared_ptr< SessionImpl > | m_session |
Definition at line 28 of file IOVProxy.h.
typedef std::vector<std::tuple<cond::Time_t,cond::Hash> > cond::persistency::IOVProxy::IOVContainer |
Definition at line 30 of file IOVProxy.h.
IOVProxy::IOVProxy | ( | ) |
Definition at line 103 of file IOVProxy.cc.
|
explicit |
Definition at line 108 of file IOVProxy.cc.
IOVProxy::IOVProxy | ( | const IOVProxy & | rhs | ) |
Definition at line 113 of file IOVProxy.cc.
IOVProxy::Iterator IOVProxy::begin | ( | void | ) | const |
Definition at line 228 of file IOVProxy.cc.
References m_data.
Referenced by cond::persistency::importIovs().
|
private |
Definition at line 200 of file IOVProxy.cc.
References m_session, and cond::persistency::throwException().
Referenced by find(), getLast(), getMetadata(), load(), and sequenceSize().
IOVProxy::Iterator IOVProxy::end | ( | void | ) | const |
Definition at line 236 of file IOVProxy.cc.
References m_data.
Referenced by cond::persistency::copyIov(), Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), getInterval(), cond::persistency::importIovs(), cond::persistency::KeyList::load(), l1t::DataWriter::payloadToken(), and cond::persistency::BasePayloadProxy::setIntervalFor().
cond::Time_t IOVProxy::endOfValidity | ( | ) | const |
Definition at line 178 of file IOVProxy.cc.
References m_data, and cond::time::MIN_VAL().
|
private |
Definition at line 205 of file IOVProxy.cc.
References m_data, m_session, cond::time::MAX_VAL(), and cond::time::MIN_VAL().
Referenced by find().
IOVProxy::Iterator IOVProxy::find | ( | cond::Time_t | time | ) |
Pageing switched off temporarily if( m_data->groupLowerIov == cond::time::MAX_VAL ||
case 1 : target outside time < m_data->groupLowerIov || time >= m_data->groupHigherIov ){
a new query required! first determine the groups auto iGLow = search( time, m_data->sinceGroups ); if( iGLow == m_data->sinceGroups.end() ){ so suitable group=no iov at all! exiting... return end(); } auto iGHigh = iGLow; cond::Time_t lowG = 0; unless the low group is the first one available, move the previous one to fully cover the interval if( iGLow != m_data->sinceGroups.begin() ){ iGLow–; lowG = *iGLow; } the upper group will be also extended to the next (covering in total up to three groups ) iGHigh++; cond::Time_t highG = cond::time::MAX_VAL; if( iGHigh != m_data->sinceGroups.end() ) { iGHigh++; if( iGHigh != m_data->sinceGroups.end() ) highG = *iGHigh; } finally, get the iovs for the selected group interval!! fetchSequence( lowG, highG ); }
Definition at line 258 of file IOVProxy.cc.
References checkTransaction(), fetchSequence(), m_data, cond::time::MAX_VAL(), cond::time::MIN_VAL(), and cond::persistency::search().
Referenced by BeautifulSoup.Tag::__getattr__(), cond::persistency::copyIov(), BeautifulSoup.Tag::firstText(), getInterval(), cond::persistency::importIovs(), cond::persistency::KeyList::load(), l1t::DataWriter::payloadToken(), and cond::persistency::BasePayloadProxy::setIntervalFor().
cond::Iov_t IOVProxy::getInterval | ( | cond::Time_t | time | ) |
Definition at line 303 of file IOVProxy.cc.
References end(), find(), cond::persistency::throwException(), and TrackValidation_HighPurity_cff::valid.
Referenced by cond::persistency::importIovs().
cond::Iov_t IOVProxy::getLast | ( | ) |
Definition at line 311 of file IOVProxy.cc.
References checkTransaction(), m_data, m_session, cond::time::MAX_VAL(), cond::Iov_t::payloadId, run_regression::ret, cond::Iov_t::since, and cond::Iov_t::till.
Referenced by popcon::PopCon::initialize(), and cond::service::PoolDBOutputService::tagInfo().
std::tuple< std::string, boost::posix_time::ptime, boost::posix_time::ptime > IOVProxy::getMetadata | ( | ) | const |
Definition at line 186 of file IOVProxy.cc.
References checkTransaction(), m_data, m_session, run_regression::ret, and cond::persistency::throwException().
Referenced by cond::persistency::migrateTag().
bool IOVProxy::isEmpty | ( | ) | const |
cond::Time_t IOVProxy::lastValidatedTime | ( | ) | const |
Definition at line 182 of file IOVProxy.cc.
References m_data, and cond::time::MIN_VAL().
void IOVProxy::load | ( | const std::string & | tag, |
bool | full = false |
||
) |
Definition at line 124 of file IOVProxy.cc.
References checkTransaction(), m_data, m_session, cond::time::MAX_VAL(), cond::time::MIN_VAL(), reset(), AlCaHLTBitMon_QueryRunRegistry::string, tag(), and cond::persistency::throwException().
Referenced by MatrixToProcess.MatrixToProcess::getProcess(), MatrixToProcess.MatrixToProcess::listAll(), cond::persistency::Session::readIov(), and reload().
std::pair< cond::Time_t, cond::Time_t > IOVProxy::loadedGroup | ( | ) | const |
Definition at line 335 of file IOVProxy.cc.
References m_data, cond::time::MAX_VAL(), and cond::time::MIN_VAL().
int IOVProxy::loadedSize | ( | ) | const |
Definition at line 320 of file IOVProxy.cc.
References m_data.
Referenced by cond::persistency::copyIov(), cond::persistency::copyTag(), cond::persistency::importIovs(), and cond::persistency::migrateTag().
size_t IOVProxy::numberOfQueries | ( | ) | const |
Definition at line 118 of file IOVProxy.cc.
References m_data, and m_session.
std::string IOVProxy::payloadObjectType | ( | ) | const |
Definition at line 170 of file IOVProxy.cc.
References m_data, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by cond::persistency::copyIov(), cond::persistency::copyTag(), cond::persistency::importIovs(), and cond::persistency::migrateTag().
void IOVProxy::reload | ( | ) |
Definition at line 148 of file IOVProxy.cc.
References load(), and m_data.
void IOVProxy::reset | ( | void | ) |
Definition at line 152 of file IOVProxy.cc.
References m_data, cond::time::MAX_VAL(), and cond::time::MIN_VAL().
Referenced by MatrixReader.MatrixReader::__init__(), load(), and MatrixReader.MatrixReader::showRaw().
int IOVProxy::sequenceSize | ( | ) | const |
Definition at line 324 of file IOVProxy.cc.
References checkTransaction(), m_data, m_session, and run_regression::ret.
Referenced by popcon::PopCon::initialize(), and cond::service::PoolDBOutputService::tagInfo().
const std::shared_ptr< SessionImpl > & IOVProxy::session | ( | ) | const |
Definition at line 339 of file IOVProxy.cc.
References m_session.
Referenced by cond::persistency::KeyList::load().
cond::SynchronizationType IOVProxy::synchronizationType | ( | ) | const |
Definition at line 174 of file IOVProxy.cc.
References m_data, and cond::SYNCHRONIZATION_UNKNOWN.
Referenced by cond::persistency::copyIov(), cond::persistency::copyTag(), cond::persistency::importIovs(), and cond::persistency::migrateTag().
std::string IOVProxy::tag | ( | ) | const |
Definition at line 162 of file IOVProxy.cc.
References m_data, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by load(), cond::persistency::BasePayloadProxy::reload(), and Inspector.Inspector::SetTag().
cond::TimeType IOVProxy::timeType | ( | ) | const |
Definition at line 166 of file IOVProxy.cc.
References cond::invalid, and m_data.
Referenced by cond::persistency::copyIov(), cond::persistency::copyTag(), cond::persistency::importIovs(), cond::persistency::migrateTag(), and cond::persistency::BasePayloadProxy::timeType().
|
private |
Definition at line 142 of file IOVProxy.h.
Referenced by begin(), end(), endOfValidity(), fetchSequence(), find(), getLast(), getMetadata(), isEmpty(), lastValidatedTime(), load(), loadedGroup(), loadedSize(), numberOfQueries(), operator=(), payloadObjectType(), reload(), reset(), sequenceSize(), synchronizationType(), tag(), and timeType().
|
private |
Definition at line 143 of file IOVProxy.h.
Referenced by checkTransaction(), fetchSequence(), getLast(), getMetadata(), load(), operator=(), sequenceSize(), and session().