#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) |
void | load (const std::string &tag, const boost::posix_time::ptime &snapshottime, 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 109 of file IOVProxy.cc.
|
explicit |
Definition at line 114 of file IOVProxy.cc.
IOVProxy::IOVProxy | ( | const IOVProxy & | rhs | ) |
Definition at line 119 of file IOVProxy.cc.
IOVProxy::Iterator IOVProxy::begin | ( | void | ) | const |
Definition at line 257 of file IOVProxy.cc.
References m_data.
Referenced by cond::persistency::importIovs().
|
private |
Definition at line 225 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 265 of file IOVProxy.cc.
References m_data.
Referenced by cond::persistency::copyIov(), Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), find(), 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 203 of file IOVProxy.cc.
References m_data, and cond::time::MIN_VAL().
|
private |
Definition at line 230 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 | ) |
Definition at line 288 of file IOVProxy.cc.
References checkTransaction(), end(), fetchSequence(), m_data, cond::time::MAX_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 317 of file IOVProxy.cc.
References end(), find(), and cond::persistency::throwException().
Referenced by cond::persistency::importIovs().
cond::Iov_t IOVProxy::getLast | ( | ) |
Definition at line 325 of file IOVProxy.cc.
References checkTransaction(), m_data, m_session, cond::time::MAX_VAL(), convertSQLiteXML::ok, 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 211 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 207 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 130 of file IOVProxy.cc.
Referenced by MatrixToProcess.MatrixToProcess::getProcess(), MatrixToProcess.MatrixToProcess::listAll(), cond::persistency::Session::readIov(), and reload().
void IOVProxy::load | ( | const std::string & | tag, |
const boost::posix_time::ptime & | snapshottime, | ||
bool | full = false |
||
) |
Definition at line 136 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(), and MatrixToProcess.MatrixToProcess::listAll().
std::pair< cond::Time_t, cond::Time_t > IOVProxy::loadedGroup | ( | ) | const |
Definition at line 357 of file IOVProxy.cc.
References m_data, cond::time::MAX_VAL(), and cond::time::MIN_VAL().
int IOVProxy::loadedSize | ( | ) | const |
Definition at line 338 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 124 of file IOVProxy.cc.
References m_data, and m_session.
std::string IOVProxy::payloadObjectType | ( | ) | const |
Definition at line 195 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 173 of file IOVProxy.cc.
References load(), and m_data.
void IOVProxy::reset | ( | void | ) |
Definition at line 177 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 342 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 361 of file IOVProxy.cc.
References m_session.
Referenced by cond::persistency::KeyList::load().
cond::SynchronizationType IOVProxy::synchronizationType | ( | ) | const |
Definition at line 199 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 187 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 191 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 146 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 147 of file IOVProxy.h.
Referenced by checkTransaction(), fetchSequence(), getLast(), getMetadata(), load(), operator=(), sequenceSize(), and session().