CMS 3D CMS Logo

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

#include <DbCore.h>

Public Member Functions

 BulkInserter (coral::ISchema &schema, const char *tableName)
 
void flush ()
 
template<typename P >
void insert (const P &params)
 

Static Public Attributes

static constexpr size_t cacheSize = 1000
 

Private Attributes

RowBuffer< Types... > m_buffer
 
std::unique_ptr< coral::IBulkOperation > m_coralInserter
 
coral::ISchema & m_schema
 
std::string m_tableName
 

Detailed Description

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

Definition at line 676 of file DbCore.h.

Constructor & Destructor Documentation

◆ BulkInserter()

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

Definition at line 679 of file DbCore.h.

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

Member Function Documentation

◆ flush()

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

◆ insert()

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

Member Data Documentation

◆ cacheSize

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

Definition at line 678 of file DbCore.h.

Referenced by cond::persistency::BulkInserter< Types >::insert().

◆ m_buffer

template<typename... Types>
RowBuffer<Types...> cond::persistency::BulkInserter< Types >::m_buffer
private

Definition at line 703 of file DbCore.h.

Referenced by cond::persistency::BulkInserter< Types >::insert().

◆ m_coralInserter

template<typename... Types>
std::unique_ptr<coral::IBulkOperation> cond::persistency::BulkInserter< Types >::m_coralInserter
private

◆ m_schema

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

Definition at line 700 of file DbCore.h.

Referenced by cond::persistency::BulkInserter< Types >::insert().

◆ m_tableName

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

Definition at line 701 of file DbCore.h.

Referenced by cond::persistency::BulkInserter< Types >::insert().

CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
HLT_Fake1_cff.tableName
tableName
Definition: HLT_Fake1_cff.py:10
cond::persistency::BulkInserter::m_tableName
std::string m_tableName
Definition: DbCore.h:701
cond::persistency::RowBuffer::set
void set(const P &params)
Definition: DbCore.h:194
cond::persistency::BulkInserter::m_buffer
RowBuffer< Types... > m_buffer
Definition: DbCore.h:703
cond::persistency::BulkInserter::cacheSize
static constexpr size_t cacheSize
Definition: DbCore.h:678
cond::persistency::BulkInserter::m_schema
coral::ISchema & m_schema
Definition: DbCore.h:700
cond::persistency::BulkInserter::m_coralInserter
std::unique_ptr< coral::IBulkOperation > m_coralInserter
Definition: DbCore.h:704
cond::persistency::RowBuffer::get
const coral::AttributeList & get() const
Definition: DbCore.h:200