CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 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 576 of file DbCore.h.

Constructor & Destructor Documentation

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

Definition at line 579 of file DbCore.h.

579  :
580  m_schema( schema ),
582  m_buffer(),
583  m_coralInserter(){
584  //fix me: maybe with
585  //m_coralInserter.reset( schema.tableHandle( std::string(tableName ) ).dataEditor().bulkInsert( m_buffer.get(), cacheSize ) );
586  }
tuple schema
Definition: dataDML.py:2334
RowBuffer< Types...> m_buffer
Definition: DbCore.h:602
coral::ISchema & m_schema
Definition: DbCore.h:599
std::unique_ptr< coral::IBulkOperation > m_coralInserter
Definition: DbCore.h:603

Member Function Documentation

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

Definition at line 594 of file DbCore.h.

References cond::persistency::BulkInserter< Types >::m_coralInserter.

Referenced by cond::persistency::GLOBAL_TAG_MAP::Table::insert(), and cond::persistency::IOV::Table::insertMany().

594  {
595  m_coralInserter->flush();
596  }
std::unique_ptr< coral::IBulkOperation > m_coralInserter
Definition: DbCore.h:603
template<typename... Types>
template<typename P >
void cond::persistency::BulkInserter< Types >::insert ( const P params)
inline

Member Data Documentation

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

Definition at line 578 of file DbCore.h.

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

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

Definition at line 602 of file DbCore.h.

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

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

Definition at line 599 of file DbCore.h.

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

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

Definition at line 600 of file DbCore.h.

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