NCBI C++ ToolKit
|
#include <corelib/ncbistd.hpp>
#include <objtools/data_loaders/asn_cache/asn_cache_export.h>
#include <db/bdb/bdb_file.hpp>
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
class | CAsnIndex |
This is a simple BDB structure holding information about a given accession and its indexed location. More... | |
struct | CAsnIndex::SIndexInfo |
Functions | |
size_t | IndexABioseq (const objects::CBioseq &bioseq, CAsnIndex &index, CAsnIndex::TTimestamp timestamp, CAsnIndex::TChunkId chunk_id, CAsnIndex::TOffset offset, CAsnIndex::TSize size) |
void | BioseqIndexData (const objects::CBioseq &bioseq, CAsnIndex::TGi &gi, CAsnIndex::TSeqLength &seq_length, CAsnIndex::TTaxId &taxid) |
void BioseqIndexData | ( | const objects::CBioseq & | bioseq, |
CAsnIndex::TGi & | gi, | ||
CAsnIndex::TSeqLength & | seq_length, | ||
CAsnIndex::TTaxId & | taxid | ||
) |
Definition at line 240 of file asn_index.cpp.
References GI_TO, ITERATE, TAX_ID_TO, and ZERO_TAX_ID.
Referenced by IndexABioseq(), and SBlobInserter::operator()().
size_t IndexABioseq | ( | const objects::CBioseq & | bioseq, |
CAsnIndex & | index, | ||
CAsnIndex::TTimestamp | timestamp, | ||
CAsnIndex::TChunkId | chunk_id, | ||
CAsnIndex::TOffset | offset, | ||
CAsnIndex::TSize | size | ||
) |
Definition at line 197 of file asn_index.cpp.
References BioseqIndexData(), CAsnIndex::e_main, eBDB_Ok, eUnknown, CBDB_RawFile::GetFileName(), CAsnIndex::GetIndexType(), GetNormalizedSeqId(), ITERATE, NCBI_THROW, offset, CAsnIndex::SetChunkId(), CAsnIndex::SetGi(), CAsnIndex::SetOffset(), CAsnIndex::SetSeqId(), CAsnIndex::SetSeqLength(), CAsnIndex::SetSize(), CAsnIndex::SetTaxId(), CAsnIndex::SetTimestamp(), CAsnIndex::SetVersion(), ncbi::grid::netcache::search::fields::size, string, CBDB_File::UpdateInsert(), and dtl::version.
Referenced by CDumpASNIndex::x_BuildIndexAndSeqIdInfo(), and CPrimeCacheApplication::x_ExtractAndIndex().