#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 |
void | loadRange (const std::string &tag, const cond::Time_t &begin, const cond::Time_t &end) |
void | loadRange (const std::string &tag, const cond::Time_t &begin, const cond::Time_t &end, const boost::posix_time::ptime &snapshottime) |
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 111 of file IOVProxy.cc.
|
explicit |
Definition at line 116 of file IOVProxy.cc.
IOVProxy::IOVProxy | ( | const IOVProxy & | rhs | ) |
Definition at line 121 of file IOVProxy.cc.
IOVProxy::Iterator IOVProxy::begin | ( | void | ) | const |
Definition at line 289 of file IOVProxy.cc.
References m_data.
Referenced by RunInfoUpdate::import(), cond::persistency::importIovs(), and loadRange().
|
private |
Definition at line 261 of file IOVProxy.cc.
References m_session, and cond::persistency::throwException().
Referenced by find(), getLast(), getMetadata(), load(), loadRange(), and sequenceSize().
IOVProxy::Iterator IOVProxy::end | ( | void | ) | const |
Definition at line 297 of file IOVProxy.cc.
References m_data.
Referenced by SiStripDetVOffTkMapPlotter::analyze(), SiStripDetVOffPrinter::analyze(), SiStripDetVOffTrendPlotter::analyze(), BeamSpotRcdPrinter::analyze(), cond::persistency::copyIov(), Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), find(), getInterval(), RunInfoUpdate::import(), cond::persistency::importIovs(), cond::persistency::KeyList::load(), loadRange(), l1t::DataWriter::payloadToken(), l1t::DataWriterExt::payloadToken(), and cond::persistency::BasePayloadProxy::setIntervalFor().
cond::Time_t IOVProxy::endOfValidity | ( | ) | const |
Definition at line 239 of file IOVProxy.cc.
References m_data, and cond::time::MIN_VAL().
|
private |
Definition at line 266 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 320 of file IOVProxy.cc.
References checkTransaction(), end(), fetchSequence(), m_data, cond::time::MAX_VAL(), and cond::persistency::search().
Referenced by BeautifulSoup.Tag::__getattr__(), SiStripDetVOffTkMapPlotter::analyze(), SiStripDetVOffPrinter::analyze(), SiStripDetVOffTrendPlotter::analyze(), BeamSpotRcdPrinter::analyze(), popcon::PopConBTransitionSourceHandler< T >::checkBOn(), popcon::PopConESTransitionSourceHandler< T >::checkLowGain(), cond::persistency::copyIov(), BeautifulSoup.Tag::firstText(), getInterval(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition(), RunInfoUpdate::import(), cond::persistency::importIovs(), cond::persistency::KeyList::load(), l1t::DataWriterExt::payloadToken(), l1t::DataWriter::payloadToken(), and cond::persistency::BasePayloadProxy::setIntervalFor().
cond::Iov_t IOVProxy::getInterval | ( | cond::Time_t | time | ) |
Definition at line 349 of file IOVProxy.cc.
References end(), find(), and cond::persistency::throwException().
Referenced by cond::persistency::importIovs().
cond::Iov_t IOVProxy::getLast | ( | ) |
Definition at line 357 of file IOVProxy.cc.
References checkTransaction(), m_data, m_session, cond::time::MAX_VAL(), convertSQLiteXML::ok, cond::Iov_t::payloadId, cond::Iov_t::since, and cond::Iov_t::till.
Referenced by SiStripDetVOffHandler::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), 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 247 of file IOVProxy.cc.
References checkTransaction(), m_data, m_session, and cond::persistency::throwException().
bool IOVProxy::isEmpty | ( | ) | const |
Definition at line 257 of file IOVProxy.cc.
References m_data.
Referenced by plotting.Plot::clone().
cond::Time_t IOVProxy::lastValidatedTime | ( | ) | const |
Definition at line 243 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 132 of file IOVProxy.cc.
Referenced by MatrixToProcess.MatrixToProcess::getProcess(), MatrixToProcess.MatrixToProcess::listAll(), ConfigBuilder.ConfigBuilder::prepare_FILTER(), 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 138 of file IOVProxy.cc.
References checkTransaction(), m_data, m_session, cond::time::MAX_VAL(), cond::time::MIN_VAL(), reset(), cond::time::sinceGroupSize(), loadRecoTauTagMVAsFromPrepDB_cfi::snapshotTime, AlCaHLTBitMon_QueryRunRegistry::string, tag(), and cond::persistency::throwException().
Referenced by MatrixToProcess.MatrixToProcess::getProcess(), MatrixToProcess.MatrixToProcess::listAll(), and ConfigBuilder.ConfigBuilder::prepare_FILTER().
std::pair< cond::Time_t, cond::Time_t > IOVProxy::loadedGroup | ( | ) | const |
Definition at line 382 of file IOVProxy.cc.
References m_data, cond::time::MAX_VAL(), and cond::time::MIN_VAL().
int IOVProxy::loadedSize | ( | ) | const |
Definition at line 366 of file IOVProxy.cc.
References m_data.
Referenced by popcon::PopConBTransitionSourceHandler< T >::checkBOn(), popcon::PopConESTransitionSourceHandler< T >::checkLowGain(), cond::persistency::copyIov(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition(), and cond::persistency::importIovs().
void IOVProxy::loadRange | ( | const std::string & | tag, |
const cond::Time_t & | begin, | ||
const cond::Time_t & | end | ||
) |
Definition at line 170 of file IOVProxy.cc.
Referenced by cond::persistency::importIovs(), and reload().
void IOVProxy::loadRange | ( | const std::string & | tag, |
const cond::Time_t & | begin, | ||
const cond::Time_t & | end, | ||
const boost::posix_time::ptime & | snapshottime | ||
) |
Definition at line 177 of file IOVProxy.cc.
References begin(), checkTransaction(), end(), m_data, m_session, reset(), AlCaHLTBitMon_QueryRunRegistry::string, tag(), and cond::persistency::throwException().
size_t IOVProxy::numberOfQueries | ( | ) | const |
Definition at line 126 of file IOVProxy.cc.
References m_data, and m_session.
std::string IOVProxy::payloadObjectType | ( | ) | const |
Definition at line 231 of file IOVProxy.cc.
References m_data, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by cond::persistency::copyIov(), and cond::persistency::importIovs().
void IOVProxy::reload | ( | ) |
Definition at line 204 of file IOVProxy.cc.
References load(), loadRange(), and m_data.
void IOVProxy::reset | ( | void | ) |
Definition at line 211 of file IOVProxy.cc.
References m_data, cond::time::MAX_VAL(), and cond::time::MIN_VAL().
Referenced by MatrixReader.MatrixReader::__init__(), load(), loadRange(), data_sources.json_list::next(), and MatrixReader.MatrixReader::showRaw().
int IOVProxy::sequenceSize | ( | ) | const |
Definition at line 370 of file IOVProxy.cc.
References checkTransaction(), m_data, and m_session.
Referenced by popcon::PopCon::initialize(), and cond::service::PoolDBOutputService::tagInfo().
const std::shared_ptr< SessionImpl > & IOVProxy::session | ( | ) | const |
Definition at line 386 of file IOVProxy.cc.
References m_session.
Referenced by cond::persistency::KeyList::load().
cond::SynchronizationType IOVProxy::synchronizationType | ( | ) | const |
Definition at line 235 of file IOVProxy.cc.
References m_data, and cond::SYNCH_ANY.
Referenced by cond::persistency::copyIov(), and cond::persistency::importIovs().
std::string IOVProxy::tag | ( | ) | const |
Definition at line 223 of file IOVProxy.cc.
References m_data, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by load(), loadRange(), and cond::persistency::BasePayloadProxy::reload().
cond::TimeType IOVProxy::timeType | ( | ) | const |
Definition at line 227 of file IOVProxy.cc.
References cond::invalid, and m_data.
Referenced by cond::persistency::copyIov(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition(), and cond::persistency::importIovs().
|
private |
Definition at line 152 of file IOVProxy.h.
Referenced by begin(), end(), endOfValidity(), fetchSequence(), find(), getLast(), getMetadata(), isEmpty(), lastValidatedTime(), load(), loadedGroup(), loadedSize(), loadRange(), numberOfQueries(), operator=(), payloadObjectType(), reload(), reset(), sequenceSize(), synchronizationType(), tag(), and timeType().
|
private |
Definition at line 153 of file IOVProxy.h.
Referenced by checkTransaction(), fetchSequence(), getLast(), getMetadata(), load(), loadRange(), operator=(), sequenceSize(), and session().