max_file_size=0);
115 voidAddIds(
intoid,
const TIdList& ids);
126 voidAddPig(
intoid,
intpig);
136 voidAddHash(
intoid,
int hash);
150 boolCanFit(
intnum);
154 bool Empty()
const;
161eMaxStringLine = 4096,
162eIsamNumericType = 0,
168 voidx_FlushNumericIndex();
171 voidx_FlushStringIndex();
179 voidx_AddGis(
intoid,
const TIdList& idlist);
184 voidx_AddTraceIds(
intoid,
const TIdList& idlist);
193 voidx_AddStringIds(
intoid,
const TIdList& idlist);
203 voidx_AddPdb(
intoid,
const CSeq_id& seqid);
214 voidx_AddLocal(
intoid,
const CSeq_id& seqid);
227 voidx_AddPatent(
intoid,
const CSeq_id& seqid);
238 voidx_AddTextId(
intoid,
252x_AddStringData(oid, s.data(), (
int) s.size());
266x_AddStringData(oid, s.
data(), (
int) s.
size());
278 voidx_AddStringData(
intoid,
const char* s,
int size);
290 voidx_AddString(
intoid,
const CTempString& s,
intver);
293 voidx_WriteHeader();
299 for(
unsigned i= 0;
i< s.size();
i++) {
387 Uint8max_file_size);
439 voidAddIds(
intoid,
const TIdList& ids);
450 voidAddPig(
intoid,
intpig);
460 voidAddHash(
intoid,
int hash);
487 boolCanFit(
intnum);
498 voidListFiles(vector<string> & files)
const;
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
CWriteDB_IndexFile class.
virtual void RenameFileIndex(unsigned int num_digits)
void Close()
Close the file, flushing any remaining data to disk.
virtual void x_Flush()=0
This should flush any unwritten data to disk.
virtual void RenameSingle()
Rename this file, disincluding the volume index.
EWriteDBIsamType EIsamType
Type of identifier stored in this ISAM index.
CWriteDB_IsamIndex class.
EWriteDBIsamType EIsamType
Type of identifier stored in this ISAM index.
bool m_UseInt8
Use an Int8 table for numeric IDs.
void x_ToLower(string &s)
Convert a string to lower case in-place.
void x_AddStringData(int oid, const CTempString &s)
Add a string to the string table.
Uint8 m_DataFileSize
Accumulated size of data file.
EIsamType m_Type
Type of identifier indexed here.
CRef< CWriteDB_IsamData > m_DataFile
The data file associated with this index file.
vector< SIdOid > m_NumberTable
Sorted list of numbers.
CWriteDB_PackedSemiTree m_StringSort
Sorted list of strings.
int m_Oid
OID being to which seqid strings are being added.
vector< CRef< CSeq_id > > TIdList
Type used for lists of sequence identifiers.
int m_PageSize
Ratio of samples to data records.
set< string > m_OidStringData
Keep track of string seqids associated with current value of m_Oid.
bool m_Sparse
If true, fewer strings are used.
void x_AddStdString(int oid, const string &s)
Add a string to the string table.
int m_BytesPerElem
Byte (over)estimate per Seq-id.
CRef< CWriteDB_IsamData > m_DFile
Data file, contains one record for each key/oid pair.
CRef< CWriteDB_IsamIndex > m_IFile
Index file, contains meta data and samples of the key/oid pairs.
vector< CRef< CSeq_id > > TIdList
Type used for lists of sequence identifiers.
EWriteDBIsamType EIsamType
Type of identifier stored in this ISAM index.
Packed string data container with sorting and iteration.
bool Empty(const CNcbiOstrstream &src)
static DLIST_TYPE *DLIST_NAME() first(DLIST_LIST_TYPE *list)
int64_t Int8
8-byte (64-bit) signed integer
uint64_t Uint8
8-byte (64-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const char * data(void) const
Return a pointer to the array represented.
size_type size(void) const
Return the length of the represented array.
#define NCBI_XOBJWRITE_EXPORT
char * dbname(DBPROCESS *dbproc)
Get name of current database.
unsigned int
A callback function used to compare two keys in a database.
const struct ncbi::grid::netcache::search::fields::SIZE size
Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...
NCBI C++ stream class wrappers for triggering between "new" and "old" C++ stream libraries.
Element type for numeric tables.
SIdOid(Int8 i, int o)
Construct an object from oid and ident.
int oid() const
Return the oid.
Int8 id() const
Return the numeric identifier.
Code for database files construction.
EWriteDBIsamType
Type of ISAM index.
@ eAcc
Accession (string) Index.
@ ePig
Protein Identifier Group.
USING_SCOPE(objects)
Import definitions from the objects namespace.
vector< CRef< CSeq_id > > TIdList
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