![]() |
Feathercoin
0.5.0
P2P Digital Currency
|
#include <db_impl.h>
Classes | |
struct | CompactionState |
struct | CompactionStats |
struct | ManualCompaction |
struct | Writer |
Public Member Functions | |
DBImpl (const Options &options, const std::string &dbname) | |
virtual | ~DBImpl () |
virtual Status | Put (const WriteOptions &, const Slice &key, const Slice &value) |
virtual Status | Delete (const WriteOptions &, const Slice &key) |
virtual Status | Write (const WriteOptions &options, WriteBatch *updates) |
virtual Status | Get (const ReadOptions &options, const Slice &key, std::string *value) |
virtual Iterator * | NewIterator (const ReadOptions &) |
virtual const Snapshot * | GetSnapshot () |
virtual void | ReleaseSnapshot (const Snapshot *snapshot) |
virtual bool | GetProperty (const Slice &property, std::string *value) |
virtual void | GetApproximateSizes (const Range *range, int n, uint64_t *sizes) |
virtual void | CompactRange (const Slice *begin, const Slice *end) |
void | TEST_CompactRange (int level, const Slice *begin, const Slice *end) |
Status | TEST_CompactMemTable () |
Iterator * | TEST_NewInternalIterator () |
int64_t | TEST_MaxNextLevelOverlappingBytes () |
void | RecordReadSample (Slice key) |
![]() | |
DB () | |
virtual | ~DB () |
Static Private Member Functions | |
static void | BGWork (void *db) |
Private Attributes | |
Env *const | env_ |
const InternalKeyComparator | internal_comparator_ |
const InternalFilterPolicy | internal_filter_policy_ |
const Options | options_ |
bool | owns_info_log_ |
bool | owns_cache_ |
const std::string | dbname_ |
TableCache * | table_cache_ |
FileLock * | db_lock_ |
port::Mutex | mutex_ |
port::AtomicPointer | shutting_down_ |
port::CondVar | bg_cv_ |
MemTable * | mem_ |
MemTable * | imm_ |
port::AtomicPointer | has_imm_ |
WritableFile * | logfile_ |
uint64_t | logfile_number_ |
log::Writer * | log_ |
uint32_t | seed_ |
std::deque< Writer * > | writers_ |
WriteBatch * | tmp_batch_ |
SnapshotList | snapshots_ |
std::set< uint64_t > | pending_outputs_ |
bool | bg_compaction_scheduled_ |
ManualCompaction * | manual_compaction_ |
VersionSet * | versions_ |
Status | bg_error_ |
int | consecutive_compaction_errors_ |
CompactionStats | stats_ [config::kNumLevels] |
Friends | |
class | DB |
Additional Inherited Members | |
![]() | |
static Status | Open (const Options &options, const std::string &name, DB **dbptr) |
leveldb::DBImpl::DBImpl | ( | const Options & | options, |
const std::string & | dbname | ||
) |
Definition at line 116 of file db_impl.cc.
|
virtual |
Definition at line 149 of file db_impl.cc.
|
private |
|
private |
Definition at line 619 of file db_impl.cc.
|
private |
Definition at line 656 of file db_impl.cc.
|
staticprivate |
Definition at line 615 of file db_impl.cc.
|
private |
Definition at line 1222 of file db_impl.cc.
|
private |
Definition at line 738 of file db_impl.cc.
|
private |
Definition at line 498 of file db_impl.cc.
Implements leveldb::DB.
Definition at line 531 of file db_impl.cc.
|
virtual |
Implements leveldb::DB.
Definition at line 1153 of file db_impl.cc.
|
private |
Definition at line 219 of file db_impl.cc.
|
private |
Definition at line 853 of file db_impl.cc.
|
private |
Definition at line 780 of file db_impl.cc.
|
virtual |
Implements leveldb::DB.
Definition at line 1072 of file db_impl.cc.
Implements leveldb::DB.
Definition at line 1388 of file db_impl.cc.
|
virtual |
Implements leveldb::DB.
Definition at line 1334 of file db_impl.cc.
|
virtual |
Implements leveldb::DB.
Definition at line 1138 of file db_impl.cc.
|
private |
Definition at line 832 of file db_impl.cc.
|
private |
Definition at line 1271 of file db_impl.cc.
|
private |
Definition at line 210 of file db_impl.cc.
|
private |
Definition at line 599 of file db_impl.cc.
|
private |
Definition at line 178 of file db_impl.cc.
|
private |
Definition at line 1030 of file db_impl.cc.
|
virtual |
Implements leveldb::DB.
Definition at line 1119 of file db_impl.cc.
|
private |
Definition at line 755 of file db_impl.cc.
|
private |
|
virtual |
Implements leveldb::DB.
Definition at line 1149 of file db_impl.cc.
void leveldb::DBImpl::RecordReadSample | ( | Slice | key | ) |
Definition at line 1131 of file db_impl.cc.
|
private |
Definition at line 269 of file db_impl.cc.
|
private |
Definition at line 357 of file db_impl.cc.
|
virtual |
Implements leveldb::DB.
Definition at line 1143 of file db_impl.cc.
Status leveldb::DBImpl::TEST_CompactMemTable | ( | ) |
Definition at line 583 of file db_impl.cc.
Definition at line 548 of file db_impl.cc.
int64_t leveldb::DBImpl::TEST_MaxNextLevelOverlappingBytes | ( | ) |
Definition at line 1067 of file db_impl.cc.
Iterator * leveldb::DBImpl::TEST_NewInternalIterator | ( | ) |
Definition at line 1061 of file db_impl.cc.
|
inlineprivate |
|
virtual |
Implements leveldb::DB.
Definition at line 1157 of file db_impl.cc.
|
private |
Definition at line 452 of file db_impl.cc.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |