#include "class.h"
#include "reference.h"
#include "file.h"
Classes | |
| class | dbHeader |
| Database header. More... | |
| struct | dbMemoryStatistic |
| class | FixedSizeAllocator |
| struct | FixedSizeAllocator::Hole |
| class | dbMonitor |
| class | dbL2List |
| Double linked list. More... | |
| class | dbVisitedObject |
| class | dbDatabase |
| Database class. More... | |
| struct | dbDatabase::OpenParameters |
| Structure to specify database open parameters. More... | |
| struct | dbDatabase::dbLocation |
| class | dbSearchContext |
| Search contrext used to pass information about search parameters to T-Tree and Hash table index implementations. More... | |
Typedefs | |
| typedef unsigned(* | dbHashFunction )(byte *key, int type, int keylen) |
Enumerations | |
| enum | dbInternalObject { dbTableRow, dbPageObjectMarker, dbTtreeMarker, dbTtreeNodeMarker, dbHashTableMarker, dbHashTableItemMarker, dbRtreeMarker, dbRtreePageMarker, dbInternalObjectMarker = 7 } |
| Internal objects tags. More... | |
| enum | dbPredefinedIds { dbInvalidId, dbMetaTableId, dbBitmapId, dbFirstUserId = dbBitmapId + dbBitmapPages } |
| Predefined object identifiers. More... | |
Functions | |
| template<class T> | |
| dbReference< T > | insert (T const &record) |
Variables | |
| BEGIN_FASTDB_NAMESPACE const size_t | dbDefaultInitDatabaseSize = 1024*1024 |
| Default size of memory mapping object for the database (bytes). | |
| const size_t | dbDefaultInitIndexSize = 512*1024 |
| Default initial index size (number of objects). | |
| const size_t | dbDefaultExtensionQuantum = 4*1024*1024 |
| Quantum of extension of allocated memory. | |
| const unsigned | dbMaxParallelSearchThreads = 64 |
| Maximal number of threads which can be spawned to perform parallel sequentila search. | |
| const int | dbDefaultParallelScanThreshold = 1000 |
| const int | dbDefaultPollInterval = 10*1000 |
| const int | dbWaitReadyTimeout = 60*1000 |
| const int | dbWaitStatusTimeout = 60*1000 |
| const int | dbRecoveryConnectionAttempts = 3 |
| const int | dbStartupConnectionAttempts = 60 |
| const int | dbReplicationWriteTimeout = 60*1000 |
| const int | dbMaxAsyncRecoveryIterations = 1000 |
| const offs_t | dbFreeHandleMarker = (offs_t)1 << (sizeof(offs_t)*8 - 1) |
| const size_t | dbAllocationQuantumBits = 4 |
| const size_t | dbAllocationQuantum = 1 << dbAllocationQuantumBits |
| const size_t | dbPageBits = 12 |
| const size_t | dbPageSize = 1 << dbPageBits |
| const size_t | dbIdsPerPage = dbPageSize / sizeof(oid_t) |
| const size_t | dbHandlesPerPage = dbPageSize / sizeof(offs_t) |
| const size_t | dbHandleBits = 1 + sizeof(offs_t)/4 |
| const size_t | dbBitmapSegmentBits = dbPageBits + 3 + dbAllocationQuantumBits |
| const size_t | dbBitmapSegmentSize = 1 << dbBitmapSegmentBits |
| const size_t | dbBitmapPages = 1 << (dbDatabaseOffsetBits-dbBitmapSegmentBits) |
| const size_t | dbDirtyPageBitmapSize = 1 << (dbDatabaseOidBits-dbPageBits+dbHandleBits-3) |
| const size_t | dbDefaultSelectionLimit = 2000000000 |
| const int | dbBMsearchThreshold = 512 |
| const char | dbMatchAnyOneChar = '_' |
| const char | dbMatchAnySubstring = '%' |
| const int | dbMaxReaders = 64 |
| typedef unsigned(* dbHashFunction)(byte *key, int type, int keylen) |
| enum dbInternalObject |
| enum dbPredefinedIds |
| dbReference<T> insert | ( | T const & | record | ) | [inline] |
| BEGIN_FASTDB_NAMESPACE const size_t dbDefaultInitDatabaseSize = 1024*1024 |
Default size of memory mapping object for the database (bytes).
| const size_t dbDefaultInitIndexSize = 512*1024 |
Default initial index size (number of objects).
| const size_t dbDefaultExtensionQuantum = 4*1024*1024 |
Quantum of extension of allocated memory.
| const unsigned dbMaxParallelSearchThreads = 64 |
Maximal number of threads which can be spawned to perform parallel sequentila search.
| const int dbDefaultParallelScanThreshold = 1000 |
| const int dbDefaultPollInterval = 10*1000 |
| const int dbWaitReadyTimeout = 60*1000 |
| const int dbWaitStatusTimeout = 60*1000 |
| const int dbRecoveryConnectionAttempts = 3 |
| const int dbStartupConnectionAttempts = 60 |
| const int dbReplicationWriteTimeout = 60*1000 |
| const int dbMaxAsyncRecoveryIterations = 1000 |
| const offs_t dbFreeHandleMarker = (offs_t)1 << (sizeof(offs_t)*8 - 1) |
| const size_t dbAllocationQuantumBits = 4 |
| const size_t dbAllocationQuantum = 1 << dbAllocationQuantumBits |
| const size_t dbPageBits = 12 |
| const size_t dbPageSize = 1 << dbPageBits |
| const size_t dbIdsPerPage = dbPageSize / sizeof(oid_t) |
| const size_t dbHandlesPerPage = dbPageSize / sizeof(offs_t) |
| const size_t dbHandleBits = 1 + sizeof(offs_t)/4 |
| const size_t dbBitmapSegmentBits = dbPageBits + 3 + dbAllocationQuantumBits |
| const size_t dbBitmapSegmentSize = 1 << dbBitmapSegmentBits |
| const size_t dbBitmapPages = 1 << (dbDatabaseOffsetBits-dbBitmapSegmentBits) |
| const size_t dbDirtyPageBitmapSize = 1 << (dbDatabaseOidBits-dbPageBits+dbHandleBits-3) |
| const size_t dbDefaultSelectionLimit = 2000000000 |
| const int dbBMsearchThreshold = 512 |
| const char dbMatchAnyOneChar = '_' |
| const char dbMatchAnySubstring = '%' |
| const int dbMaxReaders = 64 |