<
classFL,
classFunc>
65 template<
classFL,
classIT,
classFunc>
72 for( ;start != finish; ++start) {
88 template<
classIT,
classLock>
96vector<unsigned> batch(batch_size);
101 while(start != finish) {
103 for(
unsigned i= 0;
104 i< batch_size && start != finish;
107 unsigned id= (unsigned) *start;
108batch.push_back(
id);
112 if(batch.size() == 0)
115 if(locker) locker->Lock();
121 ITERATE(vector<unsigned>, it, batch) {
123fld.
SetInt((
int)
id);
129 if(locker) locker->Unlock();
133 if(locker) locker->Unlock();
161 string* tmp_str_buffer = 0);
177 const string& section_name);
Berkeley BDB file cursor.
Wrapper around Berkeley DB transaction structure.
BDB Data Field Buffer manager class.
BDB environment object a collection including support for some or all of caching, locking,...
Base class for constructing BDB fields.
Berkeley DB file cursor class.
This implemetation uses the Boyer-Moore alg.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
EBDB_ErrCode Delete(EIgnoreError on_error=eThrowOnError)
Delete record corresponding to the current key value.
void SetCondition(ECondition cond_from, ECondition cond_to=eNotSet)
Set search condition(type of interval)
virtual void SetTransaction(ITransaction *trans)
Establish transaction association.
CBDB_Env * GetEnv()
Get pointer on file environment Return NULL if no environment has been set.
int TUnifiedFieldIndex
CBDB_File keeps data in two buffers (key buffer and data buffer).
const CBDB_BufferManager * GetKeyBuffer() const
Get Buffer manager for key section of the file.
EBDB_ErrCode Fetch(EFetchDirection fdir=eDefault)
Fetch record.
int BDB_get_rowid(const CBDB_File &dbf)
Return record id (integer key)
void BDB_batch_delete_recs(CBDB_File &dbf, IT start, IT finish, unsigned batch_size, Lock *locker)
Delete file records based on sequence of ids.
CBDB_File::TUnifiedFieldIndex BDB_find_field(const CBDB_File &dbf, const CBoyerMooreMatcher &matcher, string *tmp_str_buffer=0)
Find index of field containing the specified value Search condition is specified by CBoyerMooreMatche...
CBDB_Env * BDB_CreateEnv(const CNcbiRegistry ®, const string §ion_name)
Create and configure BDB environment using CNcbiRegistry as a parameter container.
void BDB_iterate_file(FL &dbf, Func &func)
Template algorithm function to iterate the BDB File.
virtual void Commit()
Commit transaction.
@ eTransASync
Non-durable asyncronous transaction.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Process information in the NCBI Registry, including working with configuration files.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4