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 ◆ TBuffertypedef for raw buffer operations
Definition at line 125 of file bdb_file.hpp.
◆ TRecordCount ◆ TUnifiedFieldIndexCBDB_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 eKeepDataKeep the inserted data for a while.
eDiscardDataInvalidate the inserted data immediately after write.
Definition at line 478 of file bdb_file.hpp.
◆ EBDB_ErrCodeBDB Return codes.
Enumerator eBDB_Ok eBDB_NotFound eBDB_KeyDup eBDB_KeyEmpty eBDB_MultiRowEndDefinition at line 57 of file bdb_file.hpp.
◆ EBlobFormattingBLOB value formatting controls.
Definition at line 92 of file bdb_filedump.hpp.
◆ ECachePrioritySet 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_HighestDefinition at line 205 of file bdb_file.hpp.
◆ ECompactBerkeleyDB compaction methods and flags.
Enumerator eCompactNoFree eCompactFreeExisting eCompactFreeAllDefinition at line 112 of file bdb_file.hpp.
◆ ECondition Enumerator eNotSet eFirst eLast eEQ eGT eGE eLT eLEDefinition at line 98 of file bdb_cursor.hpp.
◆ ECursorUpdateTypeType of locking when fetching records.
Enumerator eReadUpdateDefault mode: optional update after read.
eReadModifyUpdateUse DB_RMW (write locking) on fetch.
Definition at line 117 of file bdb_cursor.hpp.
◆ EDBTypeBerkeley DB database type.
Enumerator eBtree eQueue eHashDefinition at line 86 of file bdb_file.hpp.
◆ EDuplicateKeysControl key duplicates in Btree.
Enumerator eDuplicatesDisable eDuplicatesEnableDefinition at line 101 of file bdb_file.hpp.
◆ EFetchDirection Enumerator eForward eBackward eCurrent eDefaultDefinition at line 109 of file bdb_cursor.hpp.
◆ EIgnoreError Enumerator eIgnoreError eThrowOnErrorDefinition at line 106 of file bdb_file.hpp.
◆ EMultiFetchModeFetch 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 eFetchGetBufferEndsDefinition at line 137 of file bdb_cursor.hpp.
◆ EOpenModeBDB file open mode.
Enumerator eReadWrite eReadOnly eCreateimplies 'eReadWrite' too
eReadWriteCreateread-write, create if it doesn't exist
Definition at line 78 of file bdb_file.hpp.
◆ EPrintFieldNames ◆ EReallocModeBLOB read mode, controld data buffer reallocation when there is not enough space in buffer.
Enumerator eReallocAllowed eReallocForbiddenDefinition at line 95 of file bdb_file.hpp.
◆ EValueFormatting ◆ Append() ◆ Attach() [1/2] void CBDB_File::Attach ( CBDB_File & db_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_Field * key_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 string & col_separator ="\t"
)
Constructor.
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 ( DBT * dbt ) 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.
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.
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.
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)
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 ( ITransaction * trans ) 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 string & fname ) 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 ( DB * db ) protectedvirtual ◆ SetCmp() [2/3] virtual void CBDB_RawFile::SetCmp ( DB * ) pure virtual ◆ SetCmp() [3/3] void CBDB_IdFile::SetCmp ( DB * db ) virtual ◆ SetColumnNames() ◆ SetColumnSeparator() void CBDB_FileDumper::SetColumnSeparator ( const string & col_separator ) inline ◆ SetCompressor() ◆ SetCondition()Set search condition(type of interval)
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_Env & env ) ◆ SetFetchDirection() ◆ SetFieldCompareLimit() void CBDB_File::SetFieldCompareLimit ( unsigned int n_fields ) inlineSets 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 ( DB * db ) 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_File * out_dbf ) inline ◆ SetPageSize() void CBDB_RawFile::SetPageSize ( unsigned int page_size ) ◆ SetQuery() void CBDB_FileDumper::SetQuery ( const string & query_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 protectedTest "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 ) protectedDefinition 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 ) protectedCreate m_DB member, set page, cache parameters.
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 ( DBC * dbc, DBT * key, DBT * data, unsigned flags ) protectedOverride 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 ( DBT * key, DBT * data, unsigned flags ) protectedInternal 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 ( DBT * key, DBT * data, unsigned flags ) protectedOverride 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 ( DBC * dbc, DBT * key, DBT * data, unsigned flags ) protectedInternal 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 ( DBT * data, void * usr_data ) protected ◆ x_FetchFirst_Prolog() void CBDB_FileCursor::x_FetchFirst_Prolog ( unsigned int & flag ) privateDefinition 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 ) protectedDefinition 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 ◆ FromDefinition 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" staticDefinition 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_DataBufDefinition 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_DBDefinition 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_TypeDefinition 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 protectedDefinition 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 protectedDefinition 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_KeyBufDefinition 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