1 #ifndef CondCore_CondDB_IOVSchema_h
2 #define CondCore_CondDB_IOVSchema_h
7 #include <boost/date_time/posix_time/posix_time.hpp>
11 namespace persistency {
35 boost::posix_time::ptime& insertionTime, boost::posix_time::ptime& modificationTime );
38 cond::Time_t lastValidatedTime,
const boost::posix_time::ptime& insertionTime );
40 cond::Time_t lastValidatedTime,
const boost::posix_time::ptime& updateTime );
71 const boost::posix_time::ptime& insertionTime);
73 const cond::Binary& streamerInfoData,
const boost::posix_time::ptime& insertionTime );
91 return "MIN("+SINCE::fullyQualifiedName()+
")";
95 return "CAST("+SINCE::fullyQualifiedName()+
"/"+sgroupSize+
" AS INT )*"+sgroupSize;
114 size_t selectGroups(
const std::string&
tag, std::vector<cond::Time_t>& groups );
115 size_t selectSnapshotGroups(
const std::string&
tag,
const boost::posix_time::ptime& snapshotTime,
116 std::vector<cond::Time_t>& groups );
118 std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs);
120 const boost::posix_time::ptime& snapshotTime,
121 std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs);
122 size_t selectLatest(
const std::string&
tag, std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs);
124 const boost::posix_time::ptime& snapshotTime,
125 std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs);
129 bool getSnapshotSize(
const std::string&
tag,
const boost::posix_time::ptime& snapshotTime,
size_t&
size );
131 void insertMany(
const std::string&
tag,
const std::vector<std::tuple<cond::Time_t,cond::Hash,boost::posix_time::ptime> >& iovs );
155 int statusCode,
const boost::posix_time::ptime& insertionTime);
178 const boost::posix_time::ptime& insertionTime);
180 const boost::posix_time::ptime& insertionTime);
static constexpr unsigned int SINCE_GROUP_SIZE
static std::string group()
PAYLOAD::Table m_payloadTable
coral::ISchema & m_schema
std::string parsePoolToken(const std::string &)
coral::ISchema & m_schema
coral::ISchema & m_schema
unsigned long long Time_t
TAG_MIGRATION::Table m_tagMigrationTable
IPayloadTable & payloadTable()
PAYLOAD_MIGRATION::Table m_payloadMigrationTable
bool insert(Storage &iStorage, ItemType *iItem, const IdTag &iIdTag)
coral::ISchema & m_schema
ITagMigrationTable & tagMigrationTable()
static std::string tableName()
static std::string tableName()
static std::string fullyQualifiedName()
IOVSchema(coral::ISchema &schema)
coral::ISchema & m_schema
static unsigned int PAYLOAD_HASH_SIZE
static unsigned int PAYLOAD_HASH_SIZE
static std::string fullyQualifiedName()
IPayloadMigrationTable & payloadMigrationTable()
tuple size
Write out results.