CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes | Private Attributes
cond::persistency::BulkDeleter< Types > Class Template Reference

#include <DbCore.h>

Public Member Functions

void addStaticCondition (const std::string &condition)
 
 BulkDeleter (coral::ISchema &schema, const char *tableName)
 
template<typename P >
void erase (const P &params)
 
void flush ()
 

Static Public Attributes

static constexpr size_t cacheSize = 1000
 

Private Attributes

ConditionBuffer< Types... > m_buffer
 
std::unique_ptr< coral::IBulkOperation > m_coralDeleter
 
coral::ISchema & m_schema
 
std::string m_tableName
 

Detailed Description

template<typename... Types>
class cond::persistency::BulkDeleter< Types >

Definition at line 708 of file DbCore.h.

Constructor & Destructor Documentation

◆ BulkDeleter()

template<typename... Types>
cond::persistency::BulkDeleter< Types >::BulkDeleter ( coral::ISchema &  schema,
const char *  tableName 
)
inlineexplicit

Definition at line 711 of file DbCore.h.

713  //fix me: maybe with
714  //m_coralInserter.reset( schema.tableHandle( std::string(tableName ) ).dataEditor().bulkInsert( m_buffer.get(), cacheSize ) );
715  }

Member Function Documentation

◆ addStaticCondition()

template<typename... Types>
void cond::persistency::BulkDeleter< Types >::addStaticCondition ( const std::string &  condition)
inline

◆ erase()

template<typename... Types>
template<typename P >
void cond::persistency::BulkDeleter< Types >::erase ( const P params)
inline

◆ flush()

template<typename... Types>
void cond::persistency::BulkDeleter< Types >::flush ( )
inline

Definition at line 729 of file DbCore.h.

729  {
730  if (m_coralDeleter.get())
731  m_coralDeleter->flush();
732  }

References cond::persistency::BulkDeleter< Types >::m_coralDeleter.

Member Data Documentation

◆ cacheSize

template<typename... Types>
constexpr size_t cond::persistency::BulkDeleter< Types >::cacheSize = 1000
staticconstexpr

Definition at line 710 of file DbCore.h.

Referenced by cond::persistency::BulkDeleter< Types >::erase().

◆ m_buffer

template<typename... Types>
ConditionBuffer<Types...> cond::persistency::BulkDeleter< Types >::m_buffer
private

◆ m_coralDeleter

template<typename... Types>
std::unique_ptr<coral::IBulkOperation> cond::persistency::BulkDeleter< Types >::m_coralDeleter
private

◆ m_schema

template<typename... Types>
coral::ISchema& cond::persistency::BulkDeleter< Types >::m_schema
private

Definition at line 736 of file DbCore.h.

Referenced by cond::persistency::BulkDeleter< Types >::erase().

◆ m_tableName

template<typename... Types>
std::string cond::persistency::BulkDeleter< Types >::m_tableName
private

Definition at line 737 of file DbCore.h.

Referenced by cond::persistency::BulkDeleter< Types >::erase().

cond::persistency::ConditionBuffer::get
const coral::AttributeList & get() const
Definition: DbCore.h:234
cond::persistency::ConditionBuffer::addStaticCondition
void addStaticCondition(const std::string &condition)
Definition: DbCore.h:227
cond::persistency::BulkDeleter::m_buffer
ConditionBuffer< Types... > m_buffer
Definition: DbCore.h:739
cond::persistency::ConditionBuffer::getClause
const std::string & getClause() const
Definition: DbCore.h:236
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
cond::persistency::BulkDeleter::m_tableName
std::string m_tableName
Definition: DbCore.h:737
cond::persistency::BulkDeleter::m_schema
coral::ISchema & m_schema
Definition: DbCore.h:736
cond::persistency::BulkDeleter::m_coralDeleter
std::unique_ptr< coral::IBulkOperation > m_coralDeleter
Definition: DbCore.h:740
HLT_2018_cff.tableName
tableName
Definition: HLT_2018_cff.py:10
goodZToMuMu_cfi.condition
condition
Definition: goodZToMuMu_cfi.py:37
cond::persistency::ConditionBuffer::set
void set(const P &params)
Definition: DbCore.h:222
cond::persistency::BulkDeleter::cacheSize
static constexpr size_t cacheSize
Definition: DbCore.h:710