NCBI C++ ToolKit
|
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
struct | SNCDataCoord |
struct | SNCBlobVerData |
Full information about NetCache blob (excluding key) More... | |
struct | SCompareVerAccessTime |
struct | SNCChunkMapInfo |
struct | SNCChunkMaps |
struct | SNCBlobSummary |
struct | SNCBlobFilter |
struct | SNCDBFileInfo |
Information about database part in NetCache storage. More... | |
Typedefs | |
typedef intr::set_base_hook< intr::tag< SVersMap_tag >, intr::optimize_size< true > > | TVerDataMapHook |
typedef intr::rbtree< SNCBlobVerData, intr::base_hook< TVerDataMapHook >, intr::constant_time_size< false >, intr::compare< SCompareVerAccessTime > > | TVerDataMap |
typedef map< string, SNCBlobSummary * > | TNCBlobSumList |
typedef HANDLE | TFileHandle |
typedef map< Uint4, CSrvRef< SNCDBFileInfo > > | TNCDBFilesMap |
Information about all database parts in NetCache storage. More... | |
Enumerations | |
enum | ENCDBFileType { eDBFileMeta = 0x01 , eDBFileData = 0x02 , eDBFileMaps = 0x03 } |
enum | EDBFileIndex { eFileIndexMeta = 0 , eFileIndexData = 1 , eFileIndexMaps = 2 } |
Functions | |
const CSrvDiagMsg & | operator<< (const CSrvDiagMsg &msg, SNCDataCoord coord) |
bool | operator== (SNCDataCoord left, SNCDataCoord right) |
bool | operator!= (SNCDataCoord left, SNCDataCoord right) |
Variables | |
static const Uint4 | kNCMaxDBFileId = 0xFFFFFFFF |
static const size_t | kNCMaxBlobChunkSize = 32740 |
Maximum size of blob chunk stored in database. More... | |
static const Uint2 | kNCMaxChunksInMap = 128 |
static const Uint1 | kNCMaxBlobMapsDepth = 3 |
const Uint8 | kNCLargestBlobSize |
typedef HANDLE TFileHandle |
Definition at line 315 of file nc_db_info.hpp.
typedef map<string, SNCBlobSummary*> TNCBlobSumList |
Definition at line 289 of file nc_db_info.hpp.
typedef map<Uint4, CSrvRef<SNCDBFileInfo> > TNCDBFilesMap |
Information about all database parts in NetCache storage.
Definition at line 347 of file nc_db_info.hpp.
typedef intr::rbtree<SNCBlobVerData, intr::base_hook<TVerDataMapHook>, intr::constant_time_size<false>, intr::compare<SCompareVerAccessTime> > TVerDataMap |
Definition at line 184 of file nc_db_info.hpp.
typedef intr::set_base_hook<intr::tag<SVersMap_tag>, intr::optimize_size<true> > TVerDataMapHook |
Definition at line 89 of file nc_db_info.hpp.
enum EDBFileIndex |
Enumerator | |
---|---|
eFileIndexMeta | |
eFileIndexData | |
eFileIndexMaps |
Definition at line 303 of file nc_db_info.hpp.
enum ENCDBFileType |
Enumerator | |
---|---|
eDBFileMeta | |
eDBFileData | |
eDBFileMaps |
Definition at line 293 of file nc_db_info.hpp.
|
inline |
Definition at line 377 of file nc_db_info.hpp.
|
inline |
Definition at line 363 of file nc_db_info.hpp.
References SNCDataCoord::file_id, msg(), and SNCDataCoord::rec_num.
|
inline |
Definition at line 371 of file nc_db_info.hpp.
References SNCDataCoord::file_id, and SNCDataCoord::rec_num.
Definition at line 60 of file nc_db_info.hpp.
Referenced by s_ReadVariableParams().
|
static |
Maximum size of blob chunk stored in database.
It's a little bit uneven to be efficient in the current memory manager. I.e. memory manager in TaskServer allocates memory with pages of 65536 bytes, uses some of that memory for page header and then splits the rest in half to obtain the maximum block size it can allocate this way. kNCMaxBlobChunkSize should be equal or less than that size (which is kMMMaxBlockSize in memory_man.cpp in task_server library).
Definition at line 53 of file nc_db_info.hpp.
Referenced by CNCBlobVerManager::CreateNewVersion(), and CWriteBackControl::ExecuteSlice().
Definition at line 57 of file nc_db_info.hpp.
Referenced by CNCBlobStorage::DeleteBlobInfo(), CNCBlobStorage::ReadChunkData(), s_CalcChunkMapsSize(), s_CalcMapDepth(), s_CalcMapDepthImpl(), s_SaveChunkMap(), SNCChunkMaps::SNCChunkMaps(), CNCBlobStorage::WriteBlobInfo(), CNCBlobStorage::WriteChunkData(), CBlobCacher::x_CacheMetaRec(), and SNCChunkMaps::~SNCChunkMaps().
Definition at line 55 of file nc_db_info.hpp.
Referenced by CNCBlobVerManager::CreateNewVersion(), and s_CalcChunkMapsSize().
Definition at line 42 of file nc_db_info.hpp.
Referenced by s_CreateNewFile().