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/writedb__isam_8hpp_source.html below:

NCBI C++ ToolKit: include/objtools/blast/seqdb_writer/writedb_isam.hpp Source File

1 #ifndef OBJTOOLS_WRITERS_WRITEDB__WRITEDB_ISAM_HPP 2 #define OBJTOOLS_WRITERS_WRITEDB__WRITEDB_ISAM_HPP 100  Int8

max_file_size=0);

115  void

AddIds(

int

oid,

const TIdList

& ids);

126  void

AddPig(

int

oid,

int

pig);

136  void

AddHash(

int

oid,

int hash

);

150  bool

CanFit(

int

num);

154  bool Empty

()

const

;

161

eMaxStringLine = 4096,

162

eIsamNumericType = 0,

168  void

x_FlushNumericIndex();

171  void

x_FlushStringIndex();

179  void

x_AddGis(

int

oid,

const TIdList

& idlist);

184  void

x_AddTraceIds(

int

oid,

const TIdList

& idlist);

193  void

x_AddStringIds(

int

oid,

const TIdList

& idlist);

203  void

x_AddPdb(

int

oid,

const CSeq_id

& seqid);

214  void

x_AddLocal(

int

oid,

const CSeq_id

& seqid);

227  void

x_AddPatent(

int

oid,

const CSeq_id

& seqid);

238  void

x_AddTextId(

int

oid,

252

x_AddStringData(oid, s.data(), (

int

) s.size());

266

x_AddStringData(oid, s.

data

(), (

int

) s.

size

());

278  void

x_AddStringData(

int

oid,

const char

* s,

int size

);

290  void

x_AddString(

int

oid,

const CTempString

& s,

int

ver);

293  void

x_WriteHeader();

299  for

(

unsigned i

= 0;

i

< s.size();

i

++) {

387  Uint8

max_file_size);

439  void

AddIds(

int

oid,

const TIdList

& ids);

450  void

AddPig(

int

oid,

int

pig);

460  void

AddHash(

int

oid,

int hash

);

487  bool

CanFit(

int

num);

498  void

ListFiles(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