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 709 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 712 of file DbCore.h.

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

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 730 of file DbCore.h.

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

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 711 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 737 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 738 of file DbCore.h.

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

cond::persistency::ConditionBuffer::get
const coral::AttributeList & get() const
Definition: DbCore.h:235
cond::persistency::ConditionBuffer::addStaticCondition
void addStaticCondition(const std::string &condition)
Definition: DbCore.h:228
cond::persistency::BulkDeleter::m_buffer
ConditionBuffer< Types... > m_buffer
Definition: DbCore.h:740
cond::persistency::ConditionBuffer::getClause
const std::string & getClause() const
Definition: DbCore.h:237
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
cond::persistency::BulkDeleter::m_tableName
std::string m_tableName
Definition: DbCore.h:738
cond::persistency::BulkDeleter::m_schema
coral::ISchema & m_schema
Definition: DbCore.h:737
HLT_Fake1_cff.tableName
tableName
Definition: HLT_Fake1_cff.py:10
cond::persistency::BulkDeleter::m_coralDeleter
std::unique_ptr< coral::IBulkOperation > m_coralDeleter
Definition: DbCore.h:741
cond::persistency::ConditionBuffer::set
void set(const P &params)
Definition: DbCore.h:223
cond::persistency::BulkDeleter::cacheSize
static constexpr size_t cacheSize
Definition: DbCore.h:711