A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/group__BDB__Files.html below:

BDB library files and cursors

enum   CBDB_FileCursor::ECondition {
  CBDB_FileCursor::eNotSet , CBDB_FileCursor::eFirst , CBDB_FileCursor::eLast , CBDB_FileCursor::eEQ ,
  CBDB_FileCursor::eGT , CBDB_FileCursor::eGE , CBDB_FileCursor::eLT , CBDB_FileCursor::eLE
}   enum   CBDB_FileCursor::EFetchDirection { CBDB_FileCursor::eForward , CBDB_FileCursor::eBackward , CBDB_FileCursor::eCurrent , CBDB_FileCursor::eDefault }   enum   CBDB_FileCursor::ECursorUpdateType { CBDB_FileCursor::eReadUpdate , CBDB_FileCursor::eReadModifyUpdate }   Type of locking when fetching records. More...
  enum   CBDB_FileCursor::EMultiFetchMode { CBDB_FileCursor::eFetchAll , CBDB_FileCursor::eFetchGetBufferEnds }   Fetch mode regulates multi-row fetches eFetchAll (default mode) when buffer ends, cursor automatically reads the next buffer eFetchGetBufferEnds - returns eBDB_MultiRowEnd every time cursor needs to read from disk. More...
  enum   EBDB_ErrCode {
  eBDB_Ok , eBDB_NotFound , eBDB_KeyDup , eBDB_KeyEmpty ,
  eBDB_MultiRowEnd
}   BDB Return codes. More...
  enum   CBDB_RawFile::EOpenMode { CBDB_RawFile::eReadWrite , CBDB_RawFile::eReadOnly , CBDB_RawFile::eCreate , CBDB_RawFile::eReadWriteCreate }   BDB file open mode. More...
  enum   CBDB_RawFile::EDBType { CBDB_RawFile::eBtree , CBDB_RawFile::eQueue , CBDB_RawFile::eHash }   Berkeley DB database type. More...
  enum   CBDB_RawFile::EReallocMode { CBDB_RawFile::eReallocAllowed , CBDB_RawFile::eReallocForbidden }   BLOB read mode, controld data buffer reallocation when there is not enough space in buffer. More...
  enum   CBDB_RawFile::EDuplicateKeys { CBDB_RawFile::eDuplicatesDisable , CBDB_RawFile::eDuplicatesEnable }   Control key duplicates in Btree. More...
  enum   CBDB_RawFile::EIgnoreError { CBDB_RawFile::eIgnoreError , CBDB_RawFile::eThrowOnError }   enum   CBDB_RawFile::ECompact { CBDB_RawFile::eCompactNoFree , CBDB_RawFile::eCompactFreeExisting , CBDB_RawFile::eCompactFreeAll }   BerkeleyDB compaction methods and flags. More...
  enum   CBDB_RawFile::ECachePriority {
  CBDB_RawFile::eCache_Lowest , CBDB_RawFile::eCache_Low , CBDB_RawFile::eCache_Default , CBDB_RawFile::eCache_High ,
  CBDB_RawFile::eCache_Highest
}   Set the priority for this database's pages in the buffer cache This is generally a temporary advisement, and works only if an environment is used. More...
  enum   CBDB_File::EAfterWrite { CBDB_File::eKeepData , CBDB_File::eDiscardData }   enum   CBDB_FileDumper::EPrintFieldNames { CBDB_FileDumper::ePrintNames , CBDB_FileDumper::eDropNames }   enum   CBDB_FileDumper::EValueFormatting { CBDB_FileDumper::eNoQuotes , CBDB_FileDumper::eQuoteStrings , CBDB_FileDumper::eQuoteAll }   Field value formatting controls. More...
  enum   CBDB_FileDumper::EBlobFormatting { CBDB_FileDumper::eBlobSummary = (1 << 0) , CBDB_FileDumper::eBlobAll = (1 << 1) , CBDB_FileDumper::eBlobAsHex = (1 << 2) , CBDB_FileDumper::eBlobAsTxt = (1 << 3) }   BLOB value formatting controls. More...
  CBDB_ConditionHandleCBDB_ConditionHandle::operator<< (int val)   CBDB_ConditionHandleCBDB_ConditionHandle::operator<< (unsigned int val)   CBDB_ConditionHandleCBDB_ConditionHandle::operator<< (float val)   CBDB_ConditionHandleCBDB_ConditionHandle::operator<< (double val)   CBDB_ConditionHandleCBDB_ConditionHandle::operator<< (const char *val)   CBDB_ConditionHandleCBDB_ConditionHandle::operator<< (const string &val)     CBDB_ConditionHandle::CBDB_ConditionHandle (CBDB_FC_Condition &cond)     CBDB_ConditionHandle::~CBDB_ConditionHandle ()     CBDB_FileCursor::CBDB_FileCursor (CBDB_File &dbf, ECursorUpdateType utype=eReadUpdate)     CBDB_FileCursor::CBDB_FileCursor (CBDB_File &dbf, CBDB_Transaction &trans, ECursorUpdateType utype=eReadUpdate)     CBDB_FileCursor::~CBDB_FileCursor ()   void  CBDB_FileCursor::InitMultiFetch (size_t buffer_size, EMultiFetchMode mfm=eFetchAll)   Init multi-row fetch. More...
  void  CBDB_FileCursor::SetCondition (ECondition cond_from, ECondition cond_to=eNotSet)   Set search condition(type of interval) More...
  void  CBDB_FileCursor::SetFetchDirection (EFetchDirection fdir)   EFetchDirection  CBDB_FileCursor::GetFetchDirection () const   EFetchDirection  CBDB_FileCursor::GetReverseFetchDirection () const   void  CBDB_FileCursor::ReverseFetchDirection ()   EBDB_ErrCode  CBDB_FileCursor::FetchFirst ()   EBDB_ErrCode  CBDB_FileCursor::FetchFirst (void **buf, size_t buf_size, CBDB_RawFile::EReallocMode allow_realloc)   Fetch BLOB. More...
  EBDB_ErrCode  CBDB_FileCursor::FetchFirst (CBDB_RawFile::TBuffer *buf)   Fetch BLOB. More...
  EBDB_ErrCode  CBDB_FileCursor::Fetch (EFetchDirection fdir=eDefault)   Fetch record. More...
  EBDB_ErrCode  CBDB_FileCursor::Fetch (EFetchDirection fdir, void **buf, size_t buf_size, CBDB_RawFile::EReallocMode allow_realloc)   Fetch BLOB. More...
  EBDB_ErrCode  CBDB_FileCursor::Fetch (CBDB_RawFile::TBuffer *buf, EFetchDirection fdir=eDefault)   Fetch BLOB. More...
  EBDB_ErrCode  CBDB_FileCursor::Update (CBDB_File::EAfterWrite write_flag=CBDB_File::eDiscardData)   EBDB_ErrCode  CBDB_FileCursor::Delete (CBDB_File::EIgnoreError on_error=CBDB_File::eThrowOnError)   EBDB_ErrCode  CBDB_FileCursor::UpdateBlob (const void *data, size_t size, CBDB_File::EAfterWrite write_flag=CBDB_File::eDiscardData)   const void *  CBDB_FileCursor::GetLastMultiFetchData () const   Get data pointer from last fetch (only when in multifetch mode) More...
  size_t  CBDB_FileCursor::GetLastMultiFetchDataLen () const   Get data length from last fetch (only when in multifetch mode) More...
  TRecordCount  CBDB_FileCursor::KeyDupCount () const   CBDB_FileCBDB_FileCursor::GetDBFile ()   Return database file on which cursor is based. More...
  void  CBDB_FileCursor::Close ()   Close underlying cursor. More...
  void  CBDB_FileCursor::ReOpen (CBDB_Transaction *trans)   Reopen cursor after Close. More...
  bool  CBDB_FileCursor::IsOpen () const   TRUE when cursor open. More...
  bool  CBDB_FileCursor::TestTo () const   Test "TO" search criteria. Return "true" if current value satisfies it. More...
  void  CBDB_FileCursor::ResetFirstFetched ()   Set m_FirstFetched field to FALSE. More...
  IBDB_FieldConvertCBDB_FileCursor::GetFieldConvert (CBDB_BufferManager &buf, unsigned int n)   Return next field's IBDB_FieldConvert interface (hidden cast to non-public parent class) More...
    CBDB_FileCursor::CBDB_FileCursor (const CBDB_FileCursor &)   forbidden More...
  CBDB_FileCursorCBDB_FileCursor::operator= (const CBDB_FileCursor &)   void  CBDB_FileCursor::x_FetchFirst_Prolog (unsigned int &flag)     CBDB_CursorGuard::CBDB_CursorGuard (CBDB_FileCursor &cur)     CBDB_CursorGuard::~CBDB_CursorGuard ()     CBDB_CursorGuard::CBDB_CursorGuard (CBDB_CursorGuard &)   CBDB_CursorGuardCBDB_CursorGuard::operator= (const CBDB_CursorGuard &)     CBDB_RawFile::CBDB_RawFile (EDuplicateKeys dup_keys=eDuplicatesDisable, EDBType db_type=eBtree)   virtual  CBDB_RawFile::~CBDB_RawFile ()   void  CBDB_RawFile::SetEnv (CBDB_Env &env)   Associate file with environment. More...
  CBDB_EnvCBDB_RawFile::GetEnv ()   Get pointer on file environment Return NULL if no environment has been set. More...
  void  CBDB_RawFile::Open (const string &filename, EOpenMode open_mode, bool support_dirty_read=false, unsigned rec_len=0)   Open file with specified access mode. More...
  void  CBDB_RawFile::Open (const string &filename, const string &database, EOpenMode open_mode, bool support_dirty_read=false, unsigned rec_len=0)   Open file with specified filename and database name. More...
  void  CBDB_RawFile::Attach (CBDB_RawFile &bdb_file)   Attach class to external BerkeleyDB file instance. More...
  void  CBDB_RawFile::Close ()   Close file. More...
  void  CBDB_RawFile::Reopen (EOpenMode open_mode, bool support_dirty_read=false, unsigned rec_len=0)   Reopen database file. (Should be already open). More...
  void  CBDB_RawFile::Remove (const string &filename, const string &database=kEmptyStr)   Remove the database specified by the filename and database arguments. More...
  unsigned int  CBDB_RawFile::Truncate ()   Empty the database. Return number of records removed. More...
  unsigned int  CBDB_RawFile::SafeTruncate ()   Workaround for truncate of large databases. More...
  void  CBDB_RawFile::Rename (const string &fname, const string &old_name, const string &new_name)   Rename a database. NOTE: This cannot be called on an opened file. More...
  void  CBDB_RawFile::Compact (ECompact compact_type=eCompactNoFree, int target_fill_pct=0)   Compact the database. More...
  void  CBDB_RawFile::CompactEx (FContinueCompact compact_callback, ECompact compact_type=eCompactNoFree, int target_fill_pct=0)   void  CBDB_RawFile::SetPageSize (unsigned int page_size)   unsigned int  CBDB_RawFile::GetPageSize ()   void  CBDB_RawFile::SetCacheSize (unsigned int cache_size)   Set Berkeley DB memory cache size for the file (default is 256K). More...
  void  CBDB_RawFile::RevSplitOff ()   Turn OFF reverse splitting. More...
  void  CBDB_RawFile::DisableCmpOverride ()   Disable BTREE comparison override. More...
  void  CBDB_RawFile::SetCachePriority (ECachePriority priority)   const stringCBDB_RawFile::FileName () const   const stringCBDB_RawFile::Database () const   virtual void  CBDB_RawFile::SetCmp (DB *)=0   Set comparison function. More...
  virtual void  CBDB_RawFile::SetHash (DB *)   Set hash function. More...
  bool  CBDB_RawFile::IsOpen () const   Return TRUE if the file is open. More...
  bool  CBDB_RawFile::IsAttached () const   bool  CBDB_RawFile::IsByteSwapped () const   Return TRUE if the if the underlying database files were created on an architecture of the different byte order. More...
  bool  CBDB_RawFile::DuplicatesAllowed () const   Return TRUE if file can contain duplicate keys. More...
  EDuplicateKeys  CBDB_RawFile::GetDupKeysMode () const   Return the key duplicate mode value. More...
  const stringCBDB_RawFile::GetFileName () const   Return file name. More...
  EOpenMode  CBDB_RawFile::GetOpenMode () const   Return the file open mode. More...
  void  CBDB_RawFile::Sync ()   Flush any cached information to disk. More...
  unsigned  CBDB_RawFile::CountRecs (bool bFast=false)   Compute database statistic, return number of records. More...
  void  CBDB_RawFile::PrintStat (CNcbiOstream &out)   Print database statistics. More...
  virtual void  CBDB_RawFile::SetTransaction (ITransaction *trans)   Establish transaction association. More...
  virtual void  CBDB_RawFile::RemoveTransaction (ITransaction *trans)   Remove transaction association (must be established by SetTransaction. More...
  virtual ITransactionCBDB_RawFile::GetTransaction ()   Get current transaction. More...
  CBDB_TransactionCBDB_RawFile::GetBDBTransaction ()   Get current transaction. More...
  unsigned  CBDB_RawFile::GetRecLen () const   Get record length Works for fixed length record DBs only (Queue) More...
  void  CBDB_RawFile::SetHashFillFactor (unsigned h_ffactor)   Set hash table density (fill factor) More...
  void  CBDB_RawFile::SetHashNelem (unsigned h_nelem)   Set an estimate of hash table final size. More...
  void  CBDB_RawFile::DisableHashOverride ()   Disable hash method override (Berkeley DB will use it's own default hashing method) More...
  void  CBDB_RawFile::SetBtreeMinKeysPerPage (unsigned int keys_per_page)   Set the minimum number of keys per page (BTREE access methods only) More...
  unsigned int  CBDB_RawFile::GetBtreeMinKeysPerPage ()   void  CBDB_RawFile::SetCompressor (ICompression *compressor, EOwnership own=eTakeOwnership)   Set record compressor. More...
    CBDB_RawFile::CBDB_RawFile (const CBDB_RawFile &)   forbidden More...
  CBDB_RawFileCBDB_RawFile::operator= (const CBDB_RawFile &)   void  CBDB_RawFile::x_Open (const char *filename, const char *database, EOpenMode open_mode, bool support_dirty_read, unsigned rec_len)   void  CBDB_RawFile::x_Create (const char *filename, const char *database)   void  CBDB_RawFile::x_Close (EIgnoreError close_mode)   void  CBDB_RawFile::x_CreateDB (unsigned rec_len)   Create m_DB member, set page, cache parameters. More...
  void  CBDB_RawFile::x_SetTransaction (CBDB_Transaction *trans)   Set current transaction. More...
  void  CBDB_RawFile::x_RemoveTransaction (CBDB_Transaction *trans)   DB_TXNCBDB_RawFile::GetTxn ()   Get transaction handler. More...
  DBCCBDB_RawFile::CreateCursor (CBDB_Transaction *trans=0, unsigned int flags=0) const   Create DB cursor. More...
  int  CBDB_RawFile::x_DB_Fetch (DBT *key, DBT *data, unsigned flags)   Internal override for DB->get(...) This method overrides destination buffer and uses compressor: Should only be used with DB_DBT_USERMEM flag. More...
  int  CBDB_RawFile::x_DBC_Fetch (DBC *dbc, DBT *key, DBT *data, unsigned flags)   Internal override for DBC->c_get(...) This method overrides destination buffer and uses compressor: Should only be used with DB_DBT_USERMEM flag. More...
  int  CBDB_RawFile::x_DB_Put (DBT *key, DBT *data, unsigned flags)   Override for DB->put(...) Handles compression. More...
  int  CBDB_RawFile::x_DB_CPut (DBC *dbc, DBT *key, DBT *data, unsigned flags)   Override for DBC->c_put(...) Handles compression. More...
  int  CBDB_RawFile::x_FetchBufferDecompress (DBT *data, void *usr_data)   virtual void  CBDB_RawFile::x_SetByteSwapped (bool bswp)   Set byte order swapping. More...
    CBDB_MultiRowBuffer::CBDB_MultiRowBuffer (size_t buf_size)     CBDB_MultiRowBuffer::~CBDB_MultiRowBuffer ()   const void *  CBDB_MultiRowBuffer::GetLastDataPtr () const   Get data buffer pointer from last cursor read. More...
  size_t  CBDB_MultiRowBuffer::GetLastDataLen () const   Get BLOB length from last cursor read. More...
  void  CBDB_MultiRowBuffer::InitDBT ()   void  CBDB_MultiRowBuffer::MultipleInit ()     CBDB_MultiRowBuffer::CBDB_MultiRowBuffer (const CBDB_MultiRowBuffer &)   CBDB_MultiRowBufferCBDB_MultiRowBuffer::operator= (const CBDB_MultiRowBuffer &)     CBDB_File::CBDB_File (EDuplicateKeys dup_keys=eDuplicatesDisable, EDBType db_type=eBtree)   void  CBDB_File::Open (const string &filename, EOpenMode open_mode, bool support_dirty_read=false, unsigned rec_len=0)   Open file with specified access mode. More...
  void  CBDB_File::Open (const string &filename, const string &database, EOpenMode open_mode, bool support_dirty_read=false, unsigned rec_len=0)   Open file with specified filename and database name. More...
  void  CBDB_File::Reopen (EOpenMode open_mode, bool support_dirty_read=false)   Reopen the db file. More...
  void  CBDB_File::Attach (CBDB_File &db_file)   Attach external Berkeley DB file. More...
  EBDB_ErrCode  CBDB_File::Fetch ()   Fetches the record corresponding to the current key value. More...
  EBDB_ErrCode  CBDB_File::FetchForUpdate ()   Fetche the record corresponding to the current key value. More...
  EBDB_ErrCode  CBDB_File::Insert (EAfterWrite write_flag=eDiscardData)   Insert new record. More...
  unsigned  CBDB_File::Append (EAfterWrite write_flag=eDiscardData)   Append record to the queue (works only for DB_QUEUE database type) More...
  EBDB_ErrCode  CBDB_File::Delete (EIgnoreError on_error=eThrowOnError)   Delete record corresponding to the current key value. More...
  EBDB_ErrCode  CBDB_File::UpdateInsert (EAfterWrite write_flag=eDiscardData)   Update record corresponding to the current key value. More...
  void  CBDB_File::BindKey (const char *field_name, CBDB_Field *key_field, size_t buf_size=0)   void  CBDB_File::BindData (const char *field_name, CBDB_Field *data_field, size_t buf_size=0, ENullable is_null=eNullable)   void  CBDB_File::DuplicateStructure (const CBDB_File &dbf)   Create the same fieldset as in dbf and bind them to the current file. More...
  const CBDB_BufferManagerCBDB_File::GetKeyBuffer () const   Get Buffer manager for key section of the file. More...
  const CBDB_BufferManagerCBDB_File::GetDataBuffer () const   Get Buffer manager for data section of the file. More...
  CBDB_BufferManagerCBDB_File::GetKeyBuffer ()   Get Buffer manager for key section of the file. More...
  CBDB_BufferManagerCBDB_File::GetDataBuffer ()   Get Buffer manager for data section of the file. More...
  void  CBDB_File::SetFieldCompareLimit (unsigned int n_fields)   Sets maximum number of key fields participating in comparison Should be less than total number of key fields. More...
  DBTCBDB_File::CloneDBT_Key ()   Create new copy of m_DBT_Key. More...
  static void  CBDB_File::DestroyDBT_Clone (DBT *dbt)   Free the DBT structure created by CloneDBT_Key. More...
  void  CBDB_File::SetLegacyStringsCheck (bool value)   Set C-str detection. More...
  TUnifiedFieldIndex  CBDB_File::GetFieldIdx (const string &name) const   Get field index by name. More...
  const CBDB_FieldCBDB_File::GetField (TUnifiedFieldIndex idx) const   Return field by field index. More...
  CBDB_FieldCBDB_File::GetField (TUnifiedFieldIndex idx)   void  CBDB_File::SetFieldOwnership (bool own_fields)   Fields deletion is managed by the class when own_fields is TRUE. More...
  bool  CBDB_File::IsOwnFields () const   Return fields ownership flag. More...
  void  CBDB_File::CopyFrom (const CBDB_File &dbf)   Copy record (fields) from another BDB file (MUST have the same structure) More...
  void  CBDB_File::Verify (const char *filename, const char *database, FILE *backup)   Run database verification (DB->verify) More...
  void  CBDB_File::EnablePrefixCompression ()   Turn ON prefix compression. More...
  void  CBDB_File::Discard ()   Unpack internal record buffers. More...
  virtual void  CBDB_File::SetCmp (DB *)   Set comparison function. More...
  EBDB_ErrCode  CBDB_File::ReadCursor (DBC *dbc, unsigned int bdb_flag)   Read DB cursor. More...
  EBDB_ErrCode  CBDB_File::ReadCursor (DBC *dbc, unsigned int bdb_flag, void **buf, size_t buf_size, EReallocMode allow_realloc)   Read DB cursor (BLOB) More...
  EBDB_ErrCode  CBDB_File::ReadCursor (DBC *dbc, unsigned int bdb_flag, TBuffer *buf)   Read DB cursor (BLOB) More...
  EBDB_ErrCode  CBDB_File::ReadCursor (DBC *dbc, unsigned int bdb_flag, CBDB_MultiRowBuffer *multirow_buf, bool multirow_only)   Multiple-row read into a buffer Buffer is to be traversed using DB_MULTIPLE_KEY_NEXT (BerkeleyDB) More...
  EBDB_ErrCode  CBDB_File::WriteCursor (DBC *dbc, unsigned int bdb_flag, EAfterWrite write_flag)   Write DB cursor. More...
  EBDB_ErrCode  CBDB_File::WriteCursor (const void *data, size_t size, DBC *dbc, unsigned int bdb_flag, EAfterWrite write_flag)   Write BLOB to DB cursor. More...
  EBDB_ErrCode  CBDB_File::DeleteCursor (DBC *dbc, EIgnoreError)   Delete DB cursor. More...
  void  CBDB_File::CheckNullDataConstraint () const   Check if all NOT NULL fields are assigned. More...
  void  CBDB_File::DisableDataBufProcessing ()   Function disables processing of m_DBT_data. More...
  void  CBDB_File::DisableNull ()   Disable NULL/not NULL in data fields (Performance tweak, call before BindData) More...
  void  CBDB_File::DisableDataPacking ()   Disable packing of variable length fields in the data buffer (Call after BindData) More...
  EBDB_ErrCode  CBDB_File::x_Fetch (unsigned int flags)   Wrapper around get operation. More...
  virtual void  CBDB_File::x_SetByteSwapped (bool bswp)   Set byte order swapping. More...
    CBDB_File::CBDB_File (const CBDB_File &)   forbidden More...
  CBDB_FileCBDB_File::operator= (const CBDB_File &)   void  CBDB_File::x_StartRead ()   Record reading prolog function. More...
  void  CBDB_File::x_EndRead ()   Record reading epilog function. More...
  EBDB_ErrCode  CBDB_File::x_Write (unsigned int flags, EAfterWrite write_flag, DBC *dbc=0)   void  CBDB_File::x_CheckConstructBuffers ()   void  CBDB_File::x_ConstructKeyBuf ()   void  CBDB_File::x_ConstructDataBuf ()   static int  CBDB_File::x_CompareShim (DB *db, const DBT *dbt1, const DBT *dbt2, size_t *locp)     CBDB_IdFile::CBDB_IdFile ()   virtual void  CBDB_IdFile::SetCmp (DB *db)   Set comparison function. More...
  CBDB_File::TUnifiedFieldIndex  BDB_GetUFieldIdx (int fidx, bool key)   Make field index in CBDB_File format. More...
    CBDB_FileDumper::CBDB_FileDumper (const string &col_separator="\t")   Constructor. More...
    CBDB_FileDumper::CBDB_FileDumper (const CBDB_FileDumper &fdump)     CBDB_FileDumper::~CBDB_FileDumper ()   CBDB_FileDumperCBDB_FileDumper::operator= (const CBDB_FileDumper &fdump)   void  CBDB_FileDumper::SetColumnSeparator (const string &col_separator)   void  CBDB_FileDumper::SetColumnNames (EPrintFieldNames print_names)   Control field names printing. More...
  void  CBDB_FileDumper::SetValueFormatting (EValueFormatting vf)   void  CBDB_FileDumper::SetBlobFormat (TBlobFormat bf)   TBlobFormat  CBDB_FileDumper::GetBlobFormat () const   void  CBDB_FileDumper::Dump (const string &dump_file_name, CBDB_File &db)   Convert BDB file into text file. More...
  void  CBDB_FileDumper::Dump (CNcbiOstream &out, CBDB_File &db)   Convert BDB file into text and write it into the specified stream. More...
  void  CBDB_FileDumper::Dump (CNcbiOstream &out, CBDB_FileCursor &cur)   Dump BDB cursor to stream. More...
  unsigned  CBDB_FileDumper::GetRecordsDumped () const   Return number of records processed by Dump. More...
  void  CBDB_FileDumper::SetQuery (const string &query_str)   Set query filter. More...
  void  CBDB_FileDumper::SetBlobDumpFile (const string &fname)   Set BLOB dump file name. More...
  void  CBDB_FileDumper::SetOutFile (CBDB_File *out_dbf)   Set reference on output file (mode when all dumped records are put into a separate database) Class does not take ownership on out_dbf. More...
  void  CBDB_FileDumper::PrintHeader (CNcbiOstream &out, const CBDB_BufferManager *key, const CBDB_BufferManager *data)   void  CBDB_FileDumper::x_SetQuoteFlags (vector< unsigned > *flags, const CBDB_BufferManager &bman)   void  CBDB_FileDumper::x_DumpFields (CNcbiOstream &out, const CBDB_BufferManager &bman, const vector< unsigned > &quote_flags, bool is_key)   ◆ FContinueCompact typedef bool(* CBDB_RawFile::FContinueCompact) (void)

Extended version of compact This version performs iterative compacting and uses a callback to request an exit.

Definition at line 182 of file bdb_file.hpp.

◆ TBlobFormat ◆ TBuffer

typedef for raw buffer operations

Definition at line 125 of file bdb_file.hpp.

◆ TRecordCount ◆ TUnifiedFieldIndex

CBDB_File keeps data in two buffers (key buffer and data buffer).

TUnifiedFieldIndex is used to address fields in a non-ambigiuos manner. Negative index addresses fields in the key buffer, positive - data buffer Numbers are 1 based, 0 - means non-existing field

Definition at line 542 of file bdb_file.hpp.

◆ EAfterWrite Enumerator eKeepData 

Keep the inserted data for a while.

eDiscardData 

Invalidate the inserted data immediately after write.

Definition at line 478 of file bdb_file.hpp.

◆ EBDB_ErrCode

BDB Return codes.

Enumerator eBDB_Ok  eBDB_NotFound  eBDB_KeyDup  eBDB_KeyEmpty  eBDB_MultiRowEnd 

Definition at line 57 of file bdb_file.hpp.

◆ EBlobFormatting

BLOB value formatting controls.

See also
SetBlobFormatting
Enumerator eBlobSummary  eBlobAll  eBlobAsHex  eBlobAsTxt 

Definition at line 92 of file bdb_filedump.hpp.

◆ ECachePriority

Set the priority for this database's pages in the buffer cache This is generally a temporary advisement, and works only if an environment is used.

Enumerator eCache_Lowest  eCache_Low  eCache_Default  eCache_High  eCache_Highest 

Definition at line 205 of file bdb_file.hpp.

◆ ECompact

BerkeleyDB compaction methods and flags.

Enumerator eCompactNoFree  eCompactFreeExisting  eCompactFreeAll 

Definition at line 112 of file bdb_file.hpp.

◆ ECondition Enumerator eNotSet  eFirst  eLast  eEQ  eGT  eGE  eLT  eLE 

Definition at line 98 of file bdb_cursor.hpp.

◆ ECursorUpdateType

Type of locking when fetching records.

Enumerator eReadUpdate 

Default mode: optional update after read.

eReadModifyUpdate 

Use DB_RMW (write locking) on fetch.

Definition at line 117 of file bdb_cursor.hpp.

◆ EDBType

Berkeley DB database type.

Enumerator eBtree  eQueue  eHash 

Definition at line 86 of file bdb_file.hpp.

◆ EDuplicateKeys

Control key duplicates in Btree.

Enumerator eDuplicatesDisable  eDuplicatesEnable 

Definition at line 101 of file bdb_file.hpp.

◆ EFetchDirection Enumerator eForward  eBackward  eCurrent  eDefault 

Definition at line 109 of file bdb_cursor.hpp.

◆ EIgnoreError Enumerator eIgnoreError  eThrowOnError 

Definition at line 106 of file bdb_file.hpp.

◆ EMultiFetchMode

Fetch mode regulates multi-row fetches eFetchAll (default mode) when buffer ends, cursor automatically reads the next buffer eFetchGetBufferEnds - returns eBDB_MultiRowEnd every time cursor needs to read from disk.

Enumerator eFetchAll  eFetchGetBufferEnds 

Definition at line 137 of file bdb_cursor.hpp.

◆ EOpenMode

BDB file open mode.

Enumerator eReadWrite  eReadOnly  eCreate 

implies 'eReadWrite' too

eReadWriteCreate 

read-write, create if it doesn't exist

Definition at line 78 of file bdb_file.hpp.

◆ EPrintFieldNames ◆ EReallocMode

BLOB read mode, controld data buffer reallocation when there is not enough space in buffer.

Enumerator eReallocAllowed  eReallocForbidden 

Definition at line 95 of file bdb_file.hpp.

◆ EValueFormatting ◆ Append() ◆ Attach() [1/2] void CBDB_File::Attach ( CBDB_Filedb_file ) ◆ Attach() [2/2] ◆ BDB_GetUFieldIdx() ◆ BindData()

Definition at line 1296 of file bdb_file.cpp.

References _ASSERT, eNullable, CBDB_RawFile::IsOpen(), CBDB_File::m_DataBuf, CBDB_File::m_DisabledNull, CBDB_Field::SetDataSize(), CBDB_Field::SetName(), CBDB_Field::SetNullable(), and CBDB_File::x_ConstructDataBuf().

Referenced by CAsnIndex::CAsnIndex(), CBDB_BlobDictionary< Key >::CBDB_BlobDictionary(), CBDB_PropertyDictionary< PropKey, PropValue >::CBDB_PropertyDictionary(), CBDB_FileDumperApp::Dump(), db_map_base< K, T >::File::File(), SCache_AttrDB::SCache_AttrDB(), SCache_IdIDX::SCache_IdIDX(), SPhoneBookDB::SPhoneBookDB(), and SVolumesDB::SVolumesDB().

◆ BindKey() void CBDB_File::BindKey ( const char *  field_name, CBDB_Fieldkey_field, size_t  buf_size = 0  )

Definition at line 1281 of file bdb_file.cpp.

References _ASSERT, CBDB_RawFile::IsOpen(), CBDB_File::m_KeyBuf, CBDB_Field::SetDataSize(), and CBDB_Field::SetName().

Referenced by CAsnIndex::CAsnIndex(), CBDB_BlobDictionary< Key >::CBDB_BlobDictionary(), CBDB_BlobStoreDict< TBV >::CBDB_BlobStoreDict(), CBDB_IdBlobFile::CBDB_IdBlobFile(), CBDB_IdFile::CBDB_IdFile(), CBDB_MatrixBvStore< TBV, TM >::CBDB_MatrixBvStore(), CBDB_PropertyDictionary< PropKey, PropValue >::CBDB_PropertyDictionary(), CBDB_RangeMap< TBV >::CBDB_RangeMap(), CBlobMetaDB::CBlobMetaDB(), CBDB_FileDumperApp::Dump(), db_map_base< K, T >::File::File(), SBDB_BvStore_Id< TBV >::SBDB_BvStore_Id(), SCache_AttrDB::SCache_AttrDB(), SCache_IdIDX::SCache_IdIDX(), SDemoDB::SDemoDB(), SPhoneBookDB::SPhoneBookDB(), SPhoneBookZipIDX::SPhoneBookZipIDX(), and SVolumesDB::SVolumesDB().

◆ CBDB_ConditionHandle() ◆ CBDB_CursorGuard() [1/2] ◆ CBDB_CursorGuard() [2/2] ◆ CBDB_File() [1/2] ◆ CBDB_File() [2/2] ◆ CBDB_FileCursor() [1/3] ◆ CBDB_FileCursor() [2/3] ◆ CBDB_FileCursor() [3/3] ◆ CBDB_FileDumper() [1/2] ◆ CBDB_FileDumper() [2/2] CBDB_FileDumper::CBDB_FileDumper ( const stringcol_separator = "\t" )

Constructor.

Parameters
col_separator Column separator

Definition at line 48 of file bdb_filedump.cpp.

◆ CBDB_IdFile() CBDB_IdFile::CBDB_IdFile ( ) ◆ CBDB_MultiRowBuffer() [1/2] ◆ CBDB_MultiRowBuffer() [2/2] CBDB_MultiRowBuffer::CBDB_MultiRowBuffer ( size_t  buf_size )

Definition at line 88 of file bdb_file.cpp.

◆ CBDB_RawFile() [1/2] ◆ CBDB_RawFile() [2/2] ◆ CheckNullDataConstraint() void CBDB_File::CheckNullDataConstraint ( ) const inlineprotected ◆ CloneDBT_Key() DBT * CBDB_File::CloneDBT_Key ( ) ◆ Close() [1/2] void CBDB_FileCursor::Close ( void  ) ◆ Close() [2/2] void CBDB_RawFile::Close ( void  ) ◆ Compact() ◆ CompactEx()

Definition at line 504 of file bdb_file.cpp.

References _ASSERT, BDB_CHECK, CBDB_RawFile::eCompactFreeAll, CBDB_RawFile::eCompactFreeExisting, CBDB_RawFile::eCompactNoFree, CBDB_RawFile::FileName(), flags, CBDB_RawFile::GetTxn(), i, Info(), LOG_POST_X, CBDB_RawFile::m_DB, max(), and NULL.

Referenced by CBDB_RawFile::Compact().

◆ CopyFrom() ◆ CountRecs() unsigned CBDB_RawFile::CountRecs ( bool  bFast = false ) ◆ CreateCursor() ◆ Database() ◆ Delete() [1/2] ◆ Delete() [2/2]

Delete record corresponding to the current key value.

Definition at line 1496 of file bdb_file.cpp.

References BDB_CHECK, CBDB_File::Discard(), eBDB_NotFound, eBDB_Ok, CBDB_RawFile::eIgnoreError, CBDB_RawFile::FileName(), CBDB_RawFile::GetTxn(), CBDB_RawFile::m_DB, CBDB_RawFile::m_DBT_Key, and CBDB_File::m_KeyBuf.

Referenced by BDB_batch_delete_recs(), DeletePhoneBookRecord(), CBDB_Cache::DropBlobWithExpCheck(), CBDB_BlobSplitStore< TBV, TObjDeMux, TL >::SaveIdDeMux(), and CBDB_Cache::x_DropBlob().

◆ DeleteCursor() ◆ DestroyDBT_Clone() void CBDB_File::DestroyDBT_Clone ( DBTdbt ) static ◆ DisableCmpOverride() void CBDB_RawFile::DisableCmpOverride ( ) inline ◆ DisableDataBufProcessing() void CBDB_File::DisableDataBufProcessing ( ) inlineprotected ◆ DisableDataPacking() void CBDB_File::DisableDataPacking ( ) protected ◆ DisableHashOverride() void CBDB_RawFile::DisableHashOverride ( ) inline ◆ DisableNull() void CBDB_File::DisableNull ( ) inlineprotected ◆ Discard() void CBDB_File::Discard ( void  ) protected ◆ Dump() [1/3] ◆ Dump() [2/3]

Dump BDB cursor to stream.

Definition at line 138 of file bdb_filedump.cpp.

References buf, buffer, CBDB_File::CopyFrom(), CBDB_BLobFile::CreateStream(), data, eBDB_Ok, CBDB_FileDumper::eBlobAll, CBDB_FileDumper::eBlobAsHex, CBDB_FileDumper::ePrintNames, CBDB_FileCursor::Fetch(), CBDB_File::GetDataBuffer(), CBDB_FileCursor::GetDBFile(), CBDB_File::GetKeyBuffer(), hex(), i, CBDB_File::Insert(), ncbi::grid::netcache::search::fields::key, kNullStr, CBDB_BLobFile::LobSize(), CBDB_FileDumper::m_BlobDumpFname, CBDB_FileDumper::m_BlobFormat, CBDB_FileDumper::m_ColumnSeparator, CBDB_FileDumper::m_OutFile, CBDB_FileDumper::m_PrintNames, CBDB_FileDumper::m_Query, CBDB_FileDumper::m_RecordsDumped, NcbiEndl, out(), CBDB_FileDumper::PrintHeader(), CBDB_Query::ResetQueryClause(), ncbi::grid::netcache::search::fields::size, CBDB_FileScanner::StaticEvaluate(), trunc, CBDB_FileDumper::x_DumpFields(), and CBDB_FileDumper::x_SetQuoteFlags().

◆ Dump() [3/3] ◆ DuplicatesAllowed() bool CBDB_RawFile::DuplicatesAllowed ( ) const inline ◆ DuplicateStructure() ◆ EnablePrefixCompression() void CBDB_File::EnablePrefixCompression ( ) inline ◆ Fetch() [1/4] ◆ Fetch() [2/4]

Fetch BLOB.

Definition at line 782 of file bdb_cursor.cpp.

References _ASSERT, buf, eBDB_NotFound, eBDB_Ok, CBDB_FileCursor::eDefault, CBDB_FileCursor::eEQ, CBDB_FileCursor::FetchFirst(), CBDB_FileCursor::From, CBDB_FC_Condition::GetBuffer(), CBDB_FC_Condition::GetFieldsAssigned(), CBDB_FileCursor::m_CondFrom, CBDB_ConditionHandle::m_Condition, CBDB_FileCursor::m_DBC, CBDB_FileCursor::m_Dbf, CBDB_FileCursor::m_FetchDirection, CBDB_FileCursor::m_FirstFetched, CBDB_File::m_KeyBuf, CBDB_FileCursor::m_MultiRowBuf, CBDB_File::ReadCursor(), CBDB_FC_Condition::ResetUnassigned(), s_FDir2DBFlag(), CBDB_FileCursor::TestTo(), and CBDB_FileCursor::To.

◆ Fetch() [3/4]

Fetch BLOB.

Note
When fetching current record (eCurrent) and record has been deleted by other thread or program return code is eBDB_KeyEmpty

Definition at line 729 of file bdb_cursor.cpp.

References _ASSERT, buf, eBDB_NotFound, eBDB_Ok, CBDB_FileCursor::eDefault, CBDB_FileCursor::eEQ, CBDB_FileCursor::FetchFirst(), CBDB_FileCursor::From, CBDB_FC_Condition::GetBuffer(), CBDB_FC_Condition::GetFieldsAssigned(), CBDB_FileCursor::m_CondFrom, CBDB_ConditionHandle::m_Condition, CBDB_FileCursor::m_DBC, CBDB_FileCursor::m_Dbf, CBDB_FileCursor::m_FetchDirection, CBDB_FileCursor::m_FetchFlags, CBDB_FileCursor::m_FirstFetched, CBDB_File::m_KeyBuf, CBDB_FileCursor::m_MultiRowBuf, CBDB_File::ReadCursor(), CBDB_FC_Condition::ResetUnassigned(), s_FDir2DBFlag(), CBDB_FileCursor::TestTo(), and CBDB_FileCursor::To.

◆ Fetch() [4/4]

Fetch record.

Note
When fetching current record (eCurrent) and record has been deleted by other thread or program return code is eBDB_KeyEmpty

Definition at line 665 of file bdb_cursor.cpp.

References _ASSERT, eBDB_MultiRowEnd, eBDB_NotFound, eBDB_Ok, CBDB_FileCursor::eDefault, CBDB_FileCursor::eEQ, CBDB_FileCursor::eFetchAll, CBDB_FileCursor::eFetchGetBufferEnds, CBDB_FileCursor::FetchFirst(), CBDB_FileCursor::From, CBDB_FC_Condition::GetBuffer(), CBDB_FC_Condition::GetFieldsAssigned(), CBDB_FileCursor::m_CondFrom, CBDB_ConditionHandle::m_Condition, CBDB_FileCursor::m_DBC, CBDB_FileCursor::m_Dbf, CBDB_FileCursor::m_FetchDirection, CBDB_FileCursor::m_FetchFlags, CBDB_FileCursor::m_FirstFetched, CBDB_File::m_KeyBuf, CBDB_FileCursor::m_LastMultiFetchSuccess, CBDB_FileCursor::m_MultiFetchMode, CBDB_FileCursor::m_MultiRowBuf, CBDB_File::ReadCursor(), CBDB_FC_Condition::ResetUnassigned(), s_FDir2DBFlag(), CBDB_FileCursor::TestTo(), and CBDB_FileCursor::To.

Referenced by BDB_iterate_file(), CBDB_Cache::BlobCheckIn(), BuildZipIndex(), db_map_base< K, T >::iterator_base::check_open_cursor(), SBDB_BvStore_Id< TBV >::ComputeBitCountMap(), CBDB_Cache::DropBlob(), CBDB_FileDumper::Dump(), CBDB_Volumes::EnumerateVolumes(), CAsnCacheStore::EnumIndex(), CAsnCacheStore::EnumSeqIds(), CBDB_Cache::EvaluateTimeLine(), db_map_base< K, T >::iterator_base::fetch_next(), db_map_base< K, T >::iterator_base::fetch_prev(), CBlobMetaDB::FetchMeta(), CBDB_BvStore< TBV >::FetchToBuffer(), CBDB_Cache::GetBlobAccess(), CAsnCacheStore::GetGiCount(), CBDB_Cache::GetReadStream(), db_map_base< K, T >::iterator_base::go_end(), CBDB_MatrixBvStore< TBV, TM >::LoadMatrixDescriptions(), CBDB_Cache::Open(), PrintPhoneBook(), CBDB_Cache::Purge(), CBDB_Cache::Read(), SBDB_BvStore_Id< TBV >::ReadIds(), CBDB_Cache::RegisterOverflow(), CBDB_Cache::Remove(), CCacheIndexCopyApp::Run(), CBDB_FileScanner::Scan(), SearchPhoneBook(), CBDB_Cache::x_DropBlob(), CAsnSubCacheCreateApplication::x_EliminateIdsAlreadyInCache(), CAsnSubCacheCreateApplication::x_LocateBlobsInCache(), CBDB_Cache::x_Store(), CBDB_Cache::x_TruncateDB(), CBDB_Cache::x_UpdateAccessTime(), and CReadIndexSpeedApp::x_WalkIndex().

◆ FetchFirst() [1/3]

Definition at line 447 of file bdb_cursor.cpp.

References _ASSERT, eBDB_MultiRowEnd, eBDB_NotFound, eBDB_Ok, CBDB_FileCursor::eEQ, CBDB_FileCursor::eFetchAll, CBDB_FileCursor::eFetchGetBufferEnds, CBDB_FileCursor::eGT, CBDB_FileCursor::eLE, CBDB_FileCursor::eLT, CBDB_FileCursor::From, CBDB_FC_Condition::GetBuffer(), CBDB_FC_Condition::GetFieldsAssigned(), CBDB_FC_Condition::IsComplete(), CBDB_FC_Condition::m_Buf, CBDB_FileCursor::m_CondFrom, CBDB_ConditionHandle::m_Condition, CBDB_FileCursor::m_DBC, CBDB_FileCursor::m_Dbf, CBDB_FileCursor::m_FetchFlags, CBDB_File::m_KeyBuf, CBDB_FileCursor::m_LastMultiFetchSuccess, CBDB_FileCursor::m_MultiFetchMode, CBDB_FileCursor::m_MultiRowBuf, CBDB_File::ReadCursor(), CBDB_FileCursor::TestTo(), and CBDB_FileCursor::x_FetchFirst_Prolog().

Referenced by CBDB_RangeMap< TBV >::AddRange(), CBDB_FileCursor::Fetch(), CBDB_Cache::HasBlobs(), and CBDB_RangeMap< TBV >::Remap().

◆ FetchFirst() [2/3]

Fetch BLOB.

Definition at line 587 of file bdb_cursor.cpp.

References _ASSERT, buf, eBDB_NotFound, eBDB_Ok, CBDB_FileCursor::eEQ, CBDB_FileCursor::eGT, CBDB_FileCursor::eLE, CBDB_FileCursor::eLT, CBDB_FileCursor::From, CBDB_FC_Condition::GetBuffer(), CBDB_FC_Condition::GetFieldsAssigned(), CBDB_FC_Condition::IsComplete(), CBDB_FC_Condition::m_Buf, CBDB_FileCursor::m_CondFrom, CBDB_ConditionHandle::m_Condition, CBDB_FileCursor::m_DBC, CBDB_FileCursor::m_Dbf, CBDB_FileCursor::m_FetchFlags, CBDB_File::m_KeyBuf, CBDB_FileCursor::m_MultiRowBuf, CBDB_File::ReadCursor(), CBDB_FileCursor::TestTo(), and CBDB_FileCursor::x_FetchFirst_Prolog().

◆ FetchFirst() [3/3]

Fetch BLOB.

Definition at line 527 of file bdb_cursor.cpp.

References _ASSERT, buf, eBDB_NotFound, eBDB_Ok, CBDB_FileCursor::eEQ, CBDB_FileCursor::eGT, CBDB_FileCursor::eLE, CBDB_FileCursor::eLT, CBDB_FileCursor::From, CBDB_FC_Condition::GetBuffer(), CBDB_FC_Condition::GetFieldsAssigned(), CBDB_FC_Condition::IsComplete(), CBDB_FC_Condition::m_Buf, CBDB_FileCursor::m_CondFrom, CBDB_ConditionHandle::m_Condition, CBDB_FileCursor::m_DBC, CBDB_FileCursor::m_Dbf, CBDB_FileCursor::m_FetchFlags, CBDB_File::m_KeyBuf, CBDB_FileCursor::m_MultiRowBuf, CBDB_File::ReadCursor(), CBDB_FileCursor::TestTo(), and CBDB_FileCursor::x_FetchFirst_Prolog().

◆ FetchForUpdate()

Fetche the record corresponding to the current key value.

Acquire write lock instead of read lock when doing the retrieval. Meaningful only in the presence of transactions.

Definition at line 1432 of file bdb_file.cpp.

References CBDB_File::x_Fetch().

◆ FileName()

Definition at line 740 of file bdb_file.hpp.

References CBDB_RawFile::m_FileName.

Referenced by CBDB_RawFile::CompactEx(), CBDB_RawFile::CountRecs(), CBDB_RawFile::CreateCursor(), CBDB_File::Delete(), CBDB_File::DeleteCursor(), CBDB_LobFile::Fetch(), CBDB_LobFile::GetData(), CBDB_RawFile::PrintStat(), CBDB_File::ReadCursor(), CBDB_RawFile::SafeTruncate(), CBDB_RawFile::Sync(), CBDB_RawFile::Truncate(), CBDB_RawFile::x_CreateDB(), CBDB_File::x_Fetch(), CBDB_LobFile::x_Put(), and CBDB_File::x_Write().

◆ GetBDBTransaction() ◆ GetBlobFormat() ◆ GetBtreeMinKeysPerPage() unsigned int CBDB_RawFile::GetBtreeMinKeysPerPage ( ) ◆ GetDataBuffer() [1/2] ◆ GetDataBuffer() [2/2] ◆ GetDBFile() ◆ GetDupKeysMode() ◆ GetEnv() ◆ GetFetchDirection() ◆ GetField() [1/2] ◆ GetField() [2/2] ◆ GetFieldConvert() ◆ GetFieldIdx() ◆ GetFileName() ◆ GetKeyBuffer() [1/2] ◆ GetKeyBuffer() [2/2] ◆ GetLastDataLen() size_t CBDB_MultiRowBuffer::GetLastDataLen ( ) const inline ◆ GetLastDataPtr() const void* CBDB_MultiRowBuffer::GetLastDataPtr ( ) const inline ◆ GetLastMultiFetchData() const void * CBDB_FileCursor::GetLastMultiFetchData ( ) const ◆ GetLastMultiFetchDataLen() size_t CBDB_FileCursor::GetLastMultiFetchDataLen ( ) const ◆ GetOpenMode() EOpenMode CBDB_RawFile::GetOpenMode ( ) const inline ◆ GetPageSize() unsigned int CBDB_RawFile::GetPageSize ( ) ◆ GetRecLen() unsigned CBDB_RawFile::GetRecLen ( ) const inline ◆ GetRecordsDumped() unsigned CBDB_FileDumper::GetRecordsDumped ( ) const inline ◆ GetReverseFetchDirection() ◆ GetTransaction() ◆ GetTxn() DB_TXN * CBDB_RawFile::GetTxn ( ) protected ◆ InitDBT() void CBDB_MultiRowBuffer::InitDBT ( ) protected ◆ InitMultiFetch()

Init multi-row fetch.

Parameters
buffer_size Size of fetch buffer (at least one page size, multiple of 1024 bytes in size)

Definition at line 213 of file bdb_cursor.cpp.

References _ASSERT, CBDB_FileCursor::m_FetchFlags, CBDB_FileCursor::m_LastMultiFetchSuccess, CBDB_FileCursor::m_MultiFetchMode, CBDB_FileCursor::m_MultiRowBuf, and NULL.

Referenced by CBDB_Cache::Open(), CCacheIndexCopyApp::Run(), CAsnSubCacheCreateApplication::x_EliminateIdsAlreadyInCache(), CAsnSubCacheCreateApplication::x_LocateBlobsInCache(), and CReadIndexSpeedApp::x_WalkIndex().

◆ Insert() ◆ IsAttached() bool CBDB_RawFile::IsAttached ( ) const inline ◆ IsByteSwapped() bool CBDB_RawFile::IsByteSwapped ( ) const inline ◆ IsOpen() [1/2] bool CBDB_FileCursor::IsOpen ( void  ) const ◆ IsOpen() [2/2] bool CBDB_RawFile::IsOpen ( void  ) const inline ◆ IsOwnFields() bool CBDB_File::IsOwnFields ( ) const inline ◆ KeyDupCount() ◆ MultipleInit() void CBDB_MultiRowBuffer::MultipleInit ( ) protected ◆ Open() [1/4] ◆ Open() [2/4]

Open file with specified filename and database name.

(Berkeley DB supports having several database tables in one file.)

Definition at line 1320 of file bdb_file.cpp.

References CBDB_RawFile::Close(), database, CBDB_File::DisableDataPacking(), CBDB_RawFile::eQueue, CBDB_RawFile::IsOpen(), CBDB_File::m_DataBuf, CBDB_RawFile::m_DB, CBDB_RawFile::m_DB_Type, CBDB_File::m_KeyBuf, CBDB_RawFile::Open(), and CBDB_File::x_CheckConstructBuffers().

◆ Open() [3/4] ◆ Open() [4/4]

Open file with specified access mode.

Definition at line 774 of file bdb_file.hpp.

Referenced by BuildZipIndex(), CDumpASNIndex::CDumpASNIndex(), CBDB_FileDumperApp::Dump(), CAsnSubCacheCreateApplication::IndexNewBlobsInSubCache(), LoadDemoDB(), LoadPhoneBook(), CBDB_Cache::Open(), CBDB_Cache::OpenReadOnly(), PrintDemoDB(), PrintPhoneBook(), CPrimeCacheApplication::Run(), CReadIndexSpeedApp::Run(), CBDB_PhoneBookDemo2::Run(), CBDB_PhoneBookDemo3::Run(), CBDB_MergeTest::Run(), CAsnSubCacheCreateApplication::x_EliminateIdsAlreadyInCache(), and CAsnSubCacheCreateApplication::x_LocateBlobsInCache().

◆ operator<<() [1/6] ◆ operator<<() [2/6] ◆ operator<<() [3/6] ◆ operator<<() [4/6] ◆ operator<<() [5/6] ◆ operator<<() [6/6] ◆ operator=() [1/6] ◆ operator=() [2/6] ◆ operator=() [3/6] ◆ operator=() [4/6] ◆ operator=() [5/6] ◆ operator=() [6/6] ◆ PrintHeader() ◆ PrintStat() ◆ ReadCursor() [1/4]

Read DB cursor.

Definition at line 1680 of file bdb_file.cpp.

References BDB_CHECK, dbc, eBDB_KeyEmpty, eBDB_NotFound, eBDB_Ok, CBDB_RawFile::FileName(), CBDB_File::m_DataBufDisabled, CBDB_RawFile::m_DBT_Data, CBDB_RawFile::m_DBT_Key, CBDB_RawFile::x_DBC_Fetch(), CBDB_File::x_EndRead(), and CBDB_File::x_StartRead().

Referenced by CBDB_FileCursor::Fetch(), CBDB_FileCursor::FetchFirst(), and CBDB_File::ReadCursor().

◆ ReadCursor() [2/4]

Multiple-row read into a buffer Buffer is to be traversed using DB_MULTIPLE_KEY_NEXT (BerkeleyDB)

Parameters
multirow_only Fetch only in multirow buffer, method returns eBDB_MultiRowEnd when the buffer is over

Definition at line 1794 of file bdb_file.cpp.

References _ASSERT, BDB_CHECK, BDB_THROW, CSimpleBufferT< T, ResizeStrategy >::data(), dbc, ICompression::DecompressBuffer(), eBDB_KeyEmpty, eBDB_MultiRowEnd, eBDB_NotFound, eBDB_Ok, CBDB_RawFile::eBtree, CBDB_RawFile::eHash, CBDB_RawFile::eQueue, eUnknown, CBDB_RawFile::FileName(), AutoPtr< X, Del >::get(), ICompression::GetErrorDescription(), HAVE_UNALIGNED_READS, CBDB_MultiRowBuffer::InitDBT(), CBDB_MultiRowBuffer::m_BufPtr, CBDB_RawFile::m_CompressBuffer, CBDB_RawFile::m_Compressor, CBDB_MultiRowBuffer::m_Data_DBT, CBDB_File::m_DataBuf, CBDB_RawFile::m_DB_Type, CBDB_RawFile::m_DBT_Key, CBDB_File::m_KeyBuf, CBDB_MultiRowBuffer::m_LastData, CBDB_MultiRowBuffer::m_LastDataLen, CBDB_MultiRowBuffer::m_LastKey, CBDB_MultiRowBuffer::m_LastKeyLen, CBDB_MultiRowBuffer::MultipleInit(), NCBI_THROW, CBDB_File::ReadCursor(), CSimpleBufferT< T, ResizeStrategy >::resize_mem(), and CSimpleBufferT< T, ResizeStrategy >::size().

◆ ReadCursor() [3/4]

Read DB cursor (BLOB)

Definition at line 1705 of file bdb_file.cpp.

References _ASSERT, BDB_CHECK, buf, dbc, eBDB_KeyEmpty, eBDB_NotFound, eBDB_Ok, CBDB_RawFile::FileName(), CBDB_RawFile::m_DBT_Data, CBDB_RawFile::m_DBT_Key, CBDB_File::ReadCursor(), CBDB_RawFile::x_DBC_Fetch(), CBDB_File::x_EndRead(), and CBDB_File::x_StartRead().

◆ ReadCursor() [4/4]

Read DB cursor (BLOB)

Definition at line 1747 of file bdb_file.cpp.

References _ASSERT, BDB_CHECK, BDB_THROW, buf, dbc, eBDB_KeyEmpty, eBDB_NotFound, eBDB_Ok, CBDB_RawFile::eReallocForbidden, CBDB_RawFile::FileName(), AutoPtr< X, Del >::get(), CBDB_RawFile::m_Compressor, CBDB_RawFile::m_DBT_Data, CBDB_RawFile::m_DBT_Key, CBDB_RawFile::x_DBC_Fetch(), CBDB_File::x_EndRead(), and CBDB_File::x_StartRead().

◆ Remove() ◆ RemoveTransaction() void CBDB_RawFile::RemoveTransaction ( ITransactiontrans ) virtual ◆ Rename() ◆ ReOpen() ◆ Reopen() [1/2] ◆ Reopen() [2/2] void CBDB_RawFile::Reopen ( EOpenMode  open_mode, bool  support_dirty_read = false, unsigned  rec_len = 0  ) ◆ ResetFirstFetched() void CBDB_FileCursor::ResetFirstFetched ( ) inlineprotected ◆ ReverseFetchDirection() void CBDB_FileCursor::ReverseFetchDirection ( ) inline ◆ RevSplitOff() void CBDB_RawFile::RevSplitOff ( ) ◆ SafeTruncate() unsigned int CBDB_RawFile::SafeTruncate ( )

Workaround for truncate of large databases.

Executes out of transaction, and as such cannot be rolled back/

Definition at line 429 of file bdb_file.cpp.

References _ASSERT, BDB_CHECK, count, CBDB_Env::CreateTxn(), data, done, CBDB_RawFile::FileName(), CBDB_ErrnoException::IsNoMem(), ncbi::grid::netcache::search::fields::key, CBDB_RawFile::m_DB, CBDB_RawFile::m_Env, n, NULL, and CBDB_RawFile::SetTransaction().

◆ SetBlobDumpFile() void CBDB_FileDumper::SetBlobDumpFile ( const stringfname ) inline ◆ SetBlobFormat() ◆ SetBtreeMinKeysPerPage() void CBDB_RawFile::SetBtreeMinKeysPerPage ( unsigned int  keys_per_page ) ◆ SetCachePriority() ◆ SetCacheSize() void CBDB_RawFile::SetCacheSize ( unsigned int  cache_size ) ◆ SetCmp() [1/3] void CBDB_File::SetCmp ( DBdb ) protectedvirtual ◆ SetCmp() [2/3] virtual void CBDB_RawFile::SetCmp ( DB *  ) pure virtual ◆ SetCmp() [3/3] void CBDB_IdFile::SetCmp ( DBdb ) virtual ◆ SetColumnNames() ◆ SetColumnSeparator() void CBDB_FileDumper::SetColumnSeparator ( const stringcol_separator ) inline ◆ SetCompressor() ◆ SetCondition()

Set search condition(type of interval)

Note
SetCondition resets cursor value assignments (From, To) so should be always called before "cur.From << value ..."

Definition at line 263 of file bdb_cursor.cpp.

References BDB_THROW, CBDB_FileCursor::eBackward, CBDB_FileCursor::eEQ, CBDB_FileCursor::eForward, CBDB_FileCursor::eGE, CBDB_FileCursor::eGT, CBDB_FileCursor::eLast, CBDB_FileCursor::eLE, CBDB_FileCursor::eLT, CBDB_FileCursor::eNotSet, CBDB_FileCursor::From, CBDB_FileCursor::m_CondFrom, CBDB_ConditionHandle::m_Condition, CBDB_FileCursor::m_CondTo, CBDB_FileCursor::m_FetchDirection, CBDB_FileCursor::m_FirstFetched, CBDB_FC_Condition::ResetUnassigned(), and CBDB_FileCursor::To.

Referenced by CBDB_RangeMap< TBV >::AddRange(), BDB_iterate_file(), CBDB_Cache::BlobCheckIn(), BuildZipIndex(), SBDB_BvStore_Id< TBV >::ComputeBitCountMap(), CBDB_Cache::DropBlob(), CBDB_FileDumper::Dump(), CBDB_FileDumperApp::Dump(), CAsnCacheStore::EnumIndex(), CAsnCacheStore::EnumSeqIds(), CBDB_Cache::EvaluateTimeLine(), CBlobMetaDB::FetchMeta(), CBDB_Cache::GetBlobAccess(), CAsnCacheStore::GetGiCount(), CBDB_Cache::GetReadStream(), CBDB_Cache::HasBlobs(), CBDB_BlobSplitStore< TBV, TObjDeMux, TL >::LoadIdDeMux(), CBDB_MatrixBvStore< TBV, TM >::LoadMatrixDescriptions(), CBDB_Cache::Open(), db_map_base< K, T >::iterator_base::open_cursor(), PrintPhoneBook(), CBDB_Cache::Purge(), CBDB_Cache::Read(), SBDB_BvStore_Id< TBV >::ReadIds(), CBDB_Cache::RegisterOverflow(), CBDB_RangeMap< TBV >::Remap(), CBDB_Cache::Remove(), CBDB_FileScanner::Scan(), SearchPhoneBook(), CBDB_Cache::x_DropBlob(), CAsnSubCacheCreateApplication::x_EliminateIdsAlreadyInCache(), CAsnSubCacheCreateApplication::x_LocateBlobsInCache(), CBDB_Cache::x_Store(), CBDB_Cache::x_TruncateDB(), CBDB_Cache::x_UpdateAccessTime(), and CReadIndexSpeedApp::x_WalkIndex().

◆ SetEnv() void CBDB_RawFile::SetEnv ( CBDB_Envenv ) ◆ SetFetchDirection() ◆ SetFieldCompareLimit() void CBDB_File::SetFieldCompareLimit ( unsigned int  n_fields ) inline

Sets maximum number of key fields participating in comparison Should be less than total number of key fields.

Definition at line 790 of file bdb_file.hpp.

References CBDB_File::m_KeyBuf.

◆ SetFieldOwnership() void CBDB_File::SetFieldOwnership ( bool  own_fields ) ◆ SetHash() void CBDB_RawFile::SetHash ( DBdb ) virtual ◆ SetHashFillFactor() void CBDB_RawFile::SetHashFillFactor ( unsigned  h_ffactor ) ◆ SetHashNelem() void CBDB_RawFile::SetHashNelem ( unsigned  h_nelem ) ◆ SetLegacyStringsCheck() void CBDB_File::SetLegacyStringsCheck ( bool  value ) ◆ SetOutFile() void CBDB_FileDumper::SetOutFile ( CBDB_Fileout_dbf ) inline ◆ SetPageSize() void CBDB_RawFile::SetPageSize ( unsigned int  page_size ) ◆ SetQuery() void CBDB_FileDumper::SetQuery ( const stringquery_str ) ◆ SetTransaction()

Establish transaction association.

Implements ITransactional.

Definition at line 602 of file bdb_file.cpp.

References CBDB_Transaction::CastTransaction(), and CBDB_RawFile::x_SetTransaction().

Referenced by BDB_batch_delete_recs(), CBDB_Cache::BlobCheckIn(), CBDB_BlobSplitStore< TBV, TObjDeMux, TL >::BlobSize(), CBDB_BlobSplitStore< TBV, TObjDeMux, TL >::CreateReader(), CBDB_Cache::DropBlob(), CBDB_Cache::DropBlobWithExpCheck(), CBDB_Cache::EvaluateTimeLine(), CBDB_BlobSplitStore< TBV, TObjDeMux, TL >::Fetch(), CBDB_Cache::GetAccessTime(), CBDB_Cache::GetBlobAccess(), CBDB_Cache::GetBlobId(), CBDB_Cache::GetBlobOwner(), CBDB_Cache::GetReadStream(), CBDB_Cache::GetSizeEx(), CBDB_Cache::HasBlobs(), CBDB_Cache::Open(), CBDB_Cache::Purge(), CBDB_Cache::Read(), CBDB_BlobSplitStore< TBV, TObjDeMux, TL >::ReadRealloc(), CBDB_Cache::RegisterOverflow(), CBDB_Cache::Remove(), CBDB_RawFile::SafeTruncate(), CBDB_BlobSplitStore< TBV, TObjDeMux, TL >::SaveIdDeMux(), CBDB_Cache::x_DropBlob(), and CBDB_Cache::x_Store().

◆ SetValueFormatting() ◆ Sync() void CBDB_RawFile::Sync ( ) ◆ TestTo() bool CBDB_FileCursor::TestTo ( ) const protected

Test "TO" search criteria. Return "true" if current value satisfies it.

Definition at line 830 of file bdb_cursor.cpp.

References CBDB_FileCursor::eEQ, CBDB_FileCursor::eGE, CBDB_FileCursor::eGT, CBDB_FileCursor::eLE, CBDB_FileCursor::eLT, CBDB_FC_Condition::GetBuffer(), CBDB_ConditionHandle::m_Condition, CBDB_FileCursor::m_CondTo, CBDB_FileCursor::m_Dbf, CBDB_File::m_KeyBuf, and CBDB_FileCursor::To.

Referenced by CBDB_FileCursor::Fetch(), and CBDB_FileCursor::FetchFirst().

◆ Truncate() unsigned int CBDB_RawFile::Truncate ( ) ◆ Update() ◆ UpdateBlob() ◆ UpdateInsert() ◆ Verify() void CBDB_File::Verify ( const char *  filename, const char *  database, FILE *  backup  ) ◆ WriteCursor() [1/2] ◆ WriteCursor() [2/2] ◆ x_CheckConstructBuffers() void CBDB_File::x_CheckConstructBuffers ( ) private ◆ x_Close() ◆ x_CompareShim() ◆ x_ConstructDataBuf() void CBDB_File::x_ConstructDataBuf ( ) private ◆ x_ConstructKeyBuf() void CBDB_File::x_ConstructKeyBuf ( ) private ◆ x_Create() void CBDB_RawFile::x_Create ( const char *  filename, const char *  database  ) protected

Definition at line 887 of file bdb_file.cpp.

References _ASSERT, BDB_CHECK, database, CBDB_RawFile::eBtree, CBDB_RawFile::eHash, CBDB_RawFile::eQueue, CBDB_Env::IsTransactional(), CBDB_RawFile::kOpenFileMask, CBDB_RawFile::m_DB, CBDB_RawFile::m_DB_Attached, CBDB_RawFile::m_DB_Type, CBDB_RawFile::m_Env, and NULL.

Referenced by CBDB_RawFile::x_Open().

◆ x_CreateDB() void CBDB_RawFile::x_CreateDB ( unsigned  rec_len ) protected

Create m_DB member, set page, cache parameters.

Parameters
rec_len record length (must be non zero for Queue type)

Definition at line 620 of file bdb_file.cpp.

References _ASSERT, BDB_CHECK, CBDB_RawFile::DuplicatesAllowed(), CBDB_RawFile::eBtree, CBDB_RawFile::eHash, CBDB_RawFile::eQueue, CBDB_RawFile::FileName(), CBDB_Env::GetEnv(), CBDB_RawFile::m_BT_minkey, CBDB_RawFile::m_CacheSize, CBDB_RawFile::m_CmpOverride, CBDB_RawFile::m_DB, CBDB_RawFile::m_DB_Attached, CBDB_RawFile::m_DB_Type, CBDB_RawFile::m_Env, CBDB_RawFile::m_H_ffactor, CBDB_RawFile::m_H_nelem, CBDB_RawFile::m_PageSize, CBDB_RawFile::m_RecLen, CBDB_RawFile::m_RevSplitOff, CDB_guard::release(), CBDB_RawFile::SetCmp(), and CBDB_RawFile::SetHash().

Referenced by CBDB_File::Verify(), and CBDB_RawFile::x_Open().

◆ x_DB_CPut() int CBDB_RawFile::x_DB_CPut ( DBCdbc, DBTkey, DBTdata, unsigned  flags  ) protected

Override for DBC->c_put(...) Handles compression.

Definition at line 1163 of file bdb_file.cpp.

References _ASSERT, buf, ICompression::CompressBuffer(), CSimpleBufferT< T, ResizeStrategy >::data(), data, dbc, flags, AutoPtr< X, Del >::get(), k_BDB_CompressionCutOff, ncbi::grid::netcache::search::fields::key, CBDB_RawFile::m_CompressBuffer, CBDB_RawFile::m_Compressor, CSimpleBufferT< T, ResizeStrategy >::resize_mem(), ncbi::grid::netcache::search::fields::size, and CSimpleBufferT< T, ResizeStrategy >::size().

Referenced by CBDB_File::x_Write().

◆ x_DB_Fetch() int CBDB_RawFile::x_DB_Fetch ( DBTkey, DBTdata, unsigned  flags  ) protected

Internal override for DB->get(...) This method overrides destination buffer and uses compressor: Should only be used with DB_DBT_USERMEM flag.

Definition at line 1038 of file bdb_file.cpp.

References _ASSERT, CSimpleBufferT< T, ResizeStrategy >::data(), data, flags, AutoPtr< X, Del >::get(), CBDB_RawFile::GetTxn(), ncbi::grid::netcache::search::fields::key, CBDB_RawFile::m_CompressBuffer, CBDB_RawFile::m_Compressor, CBDB_RawFile::m_DB, CSimpleBufferT< T, ResizeStrategy >::resize_mem(), and CBDB_RawFile::x_FetchBufferDecompress().

Referenced by CBDB_File::x_Fetch().

◆ x_DB_Put() int CBDB_RawFile::x_DB_Put ( DBTkey, DBTdata, unsigned  flags  ) protected

Override for DB->put(...) Handles compression.

Definition at line 1092 of file bdb_file.cpp.

References _ASSERT, buf, ICompression::CompressBuffer(), CSimpleBufferT< T, ResizeStrategy >::data(), data, flags, AutoPtr< X, Del >::get(), CBDB_RawFile::GetTxn(), k_BDB_CompressionCutOff, ncbi::grid::netcache::search::fields::key, CBDB_RawFile::m_CompressBuffer, CBDB_RawFile::m_Compressor, CBDB_RawFile::m_DB, CSimpleBufferT< T, ResizeStrategy >::resize_mem(), ncbi::grid::netcache::search::fields::size, and CSimpleBufferT< T, ResizeStrategy >::size().

Referenced by CBDB_File::x_Write().

◆ x_DBC_Fetch() int CBDB_RawFile::x_DBC_Fetch ( DBCdbc, DBTkey, DBTdata, unsigned  flags  ) protected

Internal override for DBC->c_get(...) This method overrides destination buffer and uses compressor: Should only be used with DB_DBT_USERMEM flag.

Definition at line 1067 of file bdb_file.cpp.

References CSimpleBufferT< T, ResizeStrategy >::data(), data, dbc, flags, AutoPtr< X, Del >::get(), ncbi::grid::netcache::search::fields::key, CBDB_RawFile::m_CompressBuffer, CBDB_RawFile::m_Compressor, CSimpleBufferT< T, ResizeStrategy >::resize_mem(), and CBDB_RawFile::x_FetchBufferDecompress().

Referenced by CBDB_File::ReadCursor().

◆ x_DumpFields() ◆ x_EndRead() void CBDB_File::x_EndRead ( ) private ◆ x_Fetch()

Wrapper around get operation.

Definition at line 1408 of file bdb_file.cpp.

References BDB_CHECK, eBDB_NotFound, eBDB_Ok, CBDB_RawFile::FileName(), flags, CBDB_File::m_DataBufDisabled, CBDB_RawFile::m_DBT_Data, CBDB_RawFile::m_DBT_Key, CBDB_RawFile::x_DB_Fetch(), CBDB_File::x_EndRead(), and CBDB_File::x_StartRead().

Referenced by CBDB_File::Fetch(), and CBDB_File::FetchForUpdate().

◆ x_FetchBufferDecompress() int CBDB_RawFile::x_FetchBufferDecompress ( DBTdata, void *  usr_data  ) protected ◆ x_FetchFirst_Prolog() void CBDB_FileCursor::x_FetchFirst_Prolog ( unsigned intflag ) private

Definition at line 371 of file bdb_cursor.cpp.

References BDB_THROW, CBDB_FC_Condition::eAssignMaxVal, CBDB_FC_Condition::eAssignMinVal, CBDB_FileCursor::eBackward, CBDB_FileCursor::eEQ, CBDB_FileCursor::eFirst, CBDB_FileCursor::eGE, CBDB_FileCursor::eGT, CBDB_FileCursor::eLast, CBDB_FileCursor::eLE, CBDB_FileCursor::eLT, CBDB_FileCursor::From, CBDB_FC_Condition::GetBuffer(), CBDB_FC_Condition::InitUnassignedFields(), CBDB_FC_Condition::IsComplete(), CBDB_FileCursor::m_CondFrom, CBDB_ConditionHandle::m_Condition, CBDB_FileCursor::m_CondTo, CBDB_FileCursor::m_Dbf, CBDB_FileCursor::m_FetchDirection, CBDB_FileCursor::m_FirstFetched, CBDB_File::m_KeyBuf, and CBDB_FileCursor::To.

Referenced by CBDB_FileCursor::FetchFirst().

◆ x_Open() void CBDB_RawFile::x_Open ( const char *  filename, const char *  database, EOpenMode  open_mode, bool  support_dirty_read, unsigned  rec_len  ) protected

Definition at line 692 of file bdb_file.cpp.

References _ASSERT, BDB_CHECK, database, CBDB_RawFile::eBtree, CBDB_RawFile::eCreate, CBDB_RawFile::eHash, CBDB_RawFile::eQueue, CBDB_RawFile::eReadOnly, CBDB_RawFile::eReadWriteCreate, CBDB_Env::IsTransactional(), CBDB_RawFile::kOpenFileMask, CBDB_RawFile::m_ByteSwapped, CBDB_RawFile::m_DB, CBDB_RawFile::m_DB_Type, CBDB_RawFile::m_Env, CBDB_RawFile::m_OpenMode, CBDB_RawFile::m_RecLen, NULL, CBDB_RawFile::Remove(), CBDB_RawFile::x_Create(), CBDB_RawFile::x_CreateDB(), and CBDB_RawFile::x_SetByteSwapped().

Referenced by CBDB_RawFile::Open(), and CBDB_RawFile::Reopen().

◆ x_RemoveTransaction() ◆ x_SetByteSwapped() [1/2] void CBDB_RawFile::x_SetByteSwapped ( bool  bswp ) protectedvirtual ◆ x_SetByteSwapped() [2/2] void CBDB_File::x_SetByteSwapped ( bool  bswp ) protectedvirtual ◆ x_SetQuoteFlags() ◆ x_SetTransaction() ◆ x_StartRead() void CBDB_File::x_StartRead ( ) private ◆ x_Write()

Definition at line 2041 of file bdb_file.cpp.

References BDB_CHECK, dbc, CBDB_File::Discard(), eBDB_KeyDup, eBDB_Ok, CBDB_File::eDiscardData, CBDB_RawFile::FileName(), flags, CBDB_File::m_DataBuf, CBDB_File::m_DataBufDisabled, CBDB_RawFile::m_DBT_Data, CBDB_RawFile::m_DBT_Key, CBDB_File::m_KeyBuf, CBDB_RawFile::x_DB_CPut(), and CBDB_RawFile::x_DB_Put().

Referenced by CBDB_File::Append(), CBDB_File::Insert(), CBDB_File::UpdateInsert(), and CBDB_File::WriteCursor().

◆ ~CBDB_ConditionHandle() CBDB_ConditionHandle::~CBDB_ConditionHandle ( ) protected ◆ ~CBDB_CursorGuard() CBDB_CursorGuard::~CBDB_CursorGuard ( ) inline ◆ ~CBDB_FileCursor() CBDB_FileCursor::~CBDB_FileCursor ( ) ◆ ~CBDB_FileDumper() CBDB_FileDumper::~CBDB_FileDumper ( ) ◆ ~CBDB_MultiRowBuffer() CBDB_MultiRowBuffer::~CBDB_MultiRowBuffer ( ) ◆ ~CBDB_RawFile() CBDB_RawFile::~CBDB_RawFile ( ) virtual ◆ From

Definition at line 252 of file bdb_cursor.hpp.

Referenced by CBDB_RangeMap< TBV >::AddRange(), CBDB_Cache::BlobCheckIn(), SBDB_BvStore_Id< TBV >::ComputeBitCountMap(), CBDB_Cache::DropBlob(), CBDB_FileDumperApp::Dump(), CBDB_Cache::EvaluateTimeLine(), CBDB_FileCursor::Fetch(), CBDB_FileCursor::FetchFirst(), CBlobMetaDB::FetchMeta(), CBDB_Cache::GetBlobAccess(), CBDB_Cache::GetReadStream(), CBDB_Cache::HasBlobs(), CBDB_BlobSplitStore< TBV, TObjDeMux, TL >::LoadIdDeMux(), CBDB_MatrixBvStore< TBV, TM >::LoadMatrixDescriptions(), db_map_base< K, T >::iterator_base::open_cursor(), CBDB_Cache::Purge(), CBDB_Cache::Read(), SBDB_BvStore_Id< TBV >::ReadIds(), CBDB_Cache::RegisterOverflow(), CBDB_RangeMap< TBV >::Remap(), CBDB_Cache::Remove(), CBDB_FileCursor::ReOpen(), SearchPhoneBook(), CBDB_FileCursor::SetCondition(), CBDB_Cache::x_DropBlob(), CAsnSubCacheCreateApplication::x_EliminateIdsAlreadyInCache(), CBDB_FileCursor::x_FetchFirst_Prolog(), CAsnSubCacheCreateApplication::x_LocateBlobsInCache(), CBDB_Cache::x_Store(), and CBDB_Cache::x_UpdateAccessTime().

◆ IdKey ◆ kDefaultDatabase const char CBDB_RawFile::kDefaultDatabase = "_table" static

Definition at line 75 of file bdb_file.hpp.

◆ kOpenFileMask const int CBDB_RawFile::kOpenFileMask = 0664 staticprivate ◆ m_BlobDumpFname string CBDB_FileDumper::m_BlobDumpFname protected ◆ m_BlobFormat ◆ m_BT_minkey unsigned CBDB_RawFile::m_BT_minkey protected ◆ m_Buf void* CBDB_MultiRowBuffer::m_Buf protected ◆ m_BufPtr void* CBDB_MultiRowBuffer::m_BufPtr protected ◆ m_BufsAttached bool CBDB_File::m_BufsAttached private ◆ m_BufsCreated bool CBDB_File::m_BufsCreated private ◆ m_BufSize size_t CBDB_MultiRowBuffer::m_BufSize protected ◆ m_ByteSwapped bool CBDB_RawFile::m_ByteSwapped private ◆ m_CacheSize unsigned CBDB_RawFile::m_CacheSize private ◆ m_CmpOverride bool CBDB_RawFile::m_CmpOverride private ◆ m_ColumnSeparator string CBDB_FileDumper::m_ColumnSeparator protected ◆ m_CompressBuffer TBuffer CBDB_RawFile::m_CompressBuffer protected ◆ m_Compressor ◆ m_CondFrom ◆ m_Condition ◆ m_CondTo ◆ m_Cur ◆ m_Data_DBT DBT* CBDB_MultiRowBuffer::m_Data_DBT protected ◆ m_Database string CBDB_RawFile::m_Database private ◆ m_DataBuf

Definition at line 668 of file bdb_file.hpp.

Referenced by CBDB_File::BindData(), CBDB_File::CheckNullDataConstraint(), CBDB_File::DisableDataPacking(), CBDB_File::Discard(), CBDB_File::DuplicateStructure(), CBDB_File::GetDataBuffer(), CBDB_File::GetField(), CBDB_File::GetFieldIdx(), CBDB_File::Open(), CBDB_File::ReadCursor(), CBDB_File::Reopen(), CBDB_File::SetFieldOwnership(), CBDB_File::SetLegacyStringsCheck(), CBDB_File::x_CheckConstructBuffers(), CBDB_File::x_ConstructDataBuf(), CBDB_File::x_EndRead(), CBDB_File::x_SetByteSwapped(), CBDB_File::x_StartRead(), and CBDB_File::x_Write().

◆ m_DataBufDisabled bool CBDB_File::m_DataBufDisabled private ◆ m_DB

Definition at line 374 of file bdb_file.hpp.

Referenced by CBDB_RawFile::Attach(), CBDB_RawFile::CompactEx(), CBDB_RawFile::CountRecs(), CBDB_RawFile::CreateCursor(), CBDB_BLobFile::CreateReader(), CBDB_BLobFile::CreateReaderWriter(), CBDB_BLobFile::CreateStream(), CBDB_File::Delete(), CBDB_LobFile::Fetch(), CBDB_RawFile::GetBtreeMinKeysPerPage(), CBDB_LobFile::GetData(), CBDB_RawFile::GetPageSize(), CBDB_File::Open(), CBDB_RawFile::PrintStat(), CBDB_RawFile::Rename(), CBDB_File::Reopen(), CBDB_RawFile::Reopen(), CBDB_RawFile::SafeTruncate(), CBDB_RawFile::SetCacheSize(), CBDB_LobFile::SetCmp(), CBDB_File::SetCmp(), CBDB_IdFile::SetCmp(), CBDB_IdBlobFile::SetHash(), CBDB_RawFile::SetPageSize(), CBDB_RawFile::Sync(), CBDB_RawFile::Truncate(), CBDB_File::Verify(), CBDB_RawFile::x_Close(), CBDB_RawFile::x_Create(), CBDB_RawFile::x_CreateDB(), CBDB_RawFile::x_DB_Fetch(), CBDB_RawFile::x_DB_Put(), CBDB_RawFile::x_Open(), and CBDB_LobFile::x_Put().

◆ m_DB_Attached bool CBDB_RawFile::m_DB_Attached private ◆ m_DB_Type

Definition at line 373 of file bdb_file.hpp.

Referenced by CBDB_BLobFile::Append(), CBDB_RawFile::CBDB_RawFile(), CBDB_RawFile::GetBtreeMinKeysPerPage(), CBDB_RawFile::GetRecLen(), CBDB_File::Open(), CBDB_File::ReadCursor(), CBDB_File::Reopen(), CBDB_RawFile::SetBtreeMinKeysPerPage(), CBDB_File::SetCmp(), CBDB_IdBlobFile::SetHash(), CBDB_RawFile::SetHash(), CBDB_RawFile::SetHashFillFactor(), CBDB_RawFile::SetHashNelem(), CBDB_RawFile::x_Create(), CBDB_RawFile::x_CreateDB(), and CBDB_RawFile::x_Open().

◆ m_DBC DBC* CBDB_FileCursor::m_DBC private ◆ m_Dbf ◆ m_DBT_Data DBT* CBDB_RawFile::m_DBT_Data protected

Definition at line 376 of file bdb_file.hpp.

Referenced by CBDB_BLobFile::Append(), CBDB_RawFile::CBDB_RawFile(), CBDB_LobFile::Fetch(), CBDB_BLobFile::Fetch(), CBDB_LobFile::GetData(), CBDB_BLobFile::Insert(), CBDB_BLobFile::LobSize(), CBDB_LobFile::LobSize(), CBDB_File::ReadCursor(), CBDB_BLobFile::UpdateInsert(), CBDB_File::WriteCursor(), CBDB_File::x_EndRead(), CBDB_File::x_Fetch(), CBDB_LobFile::x_Put(), CBDB_File::x_StartRead(), CBDB_File::x_Write(), and CBDB_RawFile::~CBDB_RawFile().

◆ m_DBT_Key DBT* CBDB_RawFile::m_DBT_Key protected

Definition at line 375 of file bdb_file.hpp.

Referenced by CBDB_File::Append(), CBDB_LobFile::CBDB_LobFile(), CBDB_RawFile::CBDB_RawFile(), CBDB_File::CloneDBT_Key(), CBDB_File::Delete(), CBDB_LobFile::Fetch(), CBDB_LobFile::GetData(), CBDB_File::ReadCursor(), CBDB_File::x_EndRead(), CBDB_File::x_Fetch(), CBDB_LobFile::x_Put(), CBDB_File::x_StartRead(), CBDB_File::x_Write(), and CBDB_RawFile::~CBDB_RawFile().

◆ m_DisabledNull bool CBDB_File::m_DisabledNull private ◆ m_DuplicateKeys ◆ m_Env ◆ m_FetchDirection ◆ m_FetchFlags unsigned int CBDB_FileCursor::m_FetchFlags private ◆ m_FileName string CBDB_RawFile::m_FileName private ◆ m_FirstFetched bool CBDB_FileCursor::m_FirstFetched private ◆ m_H_ffactor unsigned CBDB_RawFile::m_H_ffactor protected ◆ m_H_nelem unsigned CBDB_RawFile::m_H_nelem protected ◆ m_KeyBuf

Definition at line 667 of file bdb_file.hpp.

Referenced by CBDB_File::BindKey(), CBDB_File::Delete(), CBDB_File::Discard(), CBDB_File::DuplicateStructure(), CBDB_FileCursor::Fetch(), CBDB_FileCursor::FetchFirst(), CBDB_File::GetField(), CBDB_File::GetFieldIdx(), CBDB_File::GetKeyBuffer(), CBDB_File::Open(), CBDB_File::ReadCursor(), CBDB_File::Reopen(), CBDB_File::SetCmp(), CBDB_File::SetFieldCompareLimit(), CBDB_File::SetFieldOwnership(), CBDB_File::SetLegacyStringsCheck(), CBDB_FileCursor::TestTo(), CBDB_File::Verify(), CBDB_File::x_CheckConstructBuffers(), CBDB_File::x_ConstructKeyBuf(), CBDB_File::x_EndRead(), CBDB_FileCursor::x_FetchFirst_Prolog(), CBDB_File::x_SetByteSwapped(), CBDB_File::x_StartRead(), and CBDB_File::x_Write().

◆ m_LastData void* CBDB_MultiRowBuffer::m_LastData protected ◆ m_LastDataLen size_t CBDB_MultiRowBuffer::m_LastDataLen protected ◆ m_LastKey void* CBDB_MultiRowBuffer::m_LastKey protected ◆ m_LastKeyLen size_t CBDB_MultiRowBuffer::m_LastKeyLen protected ◆ m_LastMultiFetchSuccess bool CBDB_FileCursor::m_LastMultiFetchSuccess private ◆ m_LegacyString bool CBDB_File::m_LegacyString private ◆ m_MultiFetchMode ◆ m_MultiRowBuf ◆ m_OpenMode ◆ m_OutFile ◆ m_OwnFields bool CBDB_File::m_OwnFields private ◆ m_PageSize unsigned CBDB_RawFile::m_PageSize private ◆ m_PrefixCompress bool CBDB_File::m_PrefixCompress private ◆ m_PrintNames ◆ m_Query ◆ m_QueryStr string CBDB_FileDumper::m_QueryStr protected ◆ m_RecLen unsigned CBDB_RawFile::m_RecLen protected ◆ m_RecordsDumped unsigned int CBDB_FileDumper::m_RecordsDumped protected ◆ m_RevSplitOff bool CBDB_RawFile::m_RevSplitOff private ◆ m_Trans ◆ m_TransAssociation int CBDB_RawFile::m_TransAssociation protected ◆ m_ValueFormatting ◆ To ◆ CBDB_FC_Condition ◆ CBDB_File ◆ CBDB_FileCursor [1/3] ◆ CBDB_FileCursor [2/3] ◆ CBDB_FileCursor [3/3]

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