#include <db_impl.h>
|
| 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 () |
|
|
Iterator * | NewInternalIterator (const ReadOptions &, SequenceNumber *latest_snapshot, uint32_t *seed) |
|
Status | NewDB () |
|
Status | Recover (VersionEdit *edit, bool *save_manifest) EXCLUSIVE_LOCKS_REQUIRED(mutex_) |
|
void | MaybeIgnoreError (Status *s) const |
|
void | DeleteObsoleteFiles () |
|
void | CompactMemTable () EXCLUSIVE_LOCKS_REQUIRED(mutex_) |
|
Status | RecoverLogFile (uint64_t log_number, bool last_log, bool *save_manifest, VersionEdit *edit, SequenceNumber *max_sequence) EXCLUSIVE_LOCKS_REQUIRED(mutex_) |
|
Status | WriteLevel0Table (MemTable *mem, VersionEdit *edit, Version *base) EXCLUSIVE_LOCKS_REQUIRED(mutex_) |
|
Status | MakeRoomForWrite (bool force) EXCLUSIVE_LOCKS_REQUIRED(mutex_) |
|
WriteBatch * | BuildBatchGroup (Writer **last_writer) |
|
void | RecordBackgroundError (const Status &s) |
|
void | MaybeScheduleCompaction () EXCLUSIVE_LOCKS_REQUIRED(mutex_) |
|
void | BackgroundCall () |
|
void | BackgroundCompaction () EXCLUSIVE_LOCKS_REQUIRED(mutex_) |
|
void | CleanupCompaction (CompactionState *compact) EXCLUSIVE_LOCKS_REQUIRED(mutex_) |
|
Status | DoCompactionWork (CompactionState *compact) EXCLUSIVE_LOCKS_REQUIRED(mutex_) |
|
Status | OpenCompactionOutputFile (CompactionState *compact) |
|
Status | FinishCompactionOutputFile (CompactionState *compact, Iterator *input) |
|
Status | InstallCompactionResults (CompactionState *compact) EXCLUSIVE_LOCKS_REQUIRED(mutex_) |
|
| DBImpl (const DBImpl &) |
|
void | operator= (const DBImpl &) |
|
const Comparator * | user_comparator () const |
|
◆ DBImpl() [1/2]
leveldb::DBImpl::DBImpl |
( |
const Options & |
options, |
|
|
const std::string & |
dbname |
|
) |
| |
◆ ~DBImpl()
leveldb::DBImpl::~DBImpl |
( |
| ) |
|
|
virtual |
◆ DBImpl() [2/2]
leveldb::DBImpl::DBImpl |
( |
const DBImpl & |
| ) |
|
|
private |
◆ BackgroundCall()
void leveldb::DBImpl::BackgroundCall |
( |
| ) |
|
|
private |
◆ BackgroundCompaction()
void leveldb::DBImpl::BackgroundCompaction |
( |
| ) |
|
|
private |
◆ BGWork()
void leveldb::DBImpl::BGWork |
( |
void * |
db | ) |
|
|
staticprivate |
◆ BuildBatchGroup()
◆ CleanupCompaction()
◆ CompactMemTable()
void leveldb::DBImpl::CompactMemTable |
( |
| ) |
|
|
private |
◆ CompactRange()
void leveldb::DBImpl::CompactRange |
( |
const Slice * |
begin, |
|
|
const Slice * |
end |
|
) |
| |
|
virtual |
◆ Delete()
◆ DeleteObsoleteFiles()
void leveldb::DBImpl::DeleteObsoleteFiles |
( |
| ) |
|
|
private |
◆ DoCompactionWork()
◆ FinishCompactionOutputFile()
◆ Get()
◆ GetApproximateSizes()
void leveldb::DBImpl::GetApproximateSizes |
( |
const Range * |
range, |
|
|
int |
n, |
|
|
uint64_t * |
sizes |
|
) |
| |
|
virtual |
◆ GetProperty()
bool leveldb::DBImpl::GetProperty |
( |
const Slice & |
property, |
|
|
std::string * |
value |
|
) |
| |
|
virtual |
◆ GetSnapshot()
const Snapshot * leveldb::DBImpl::GetSnapshot |
( |
| ) |
|
|
virtual |
◆ InstallCompactionResults()
◆ MakeRoomForWrite()
Status leveldb::DBImpl::MakeRoomForWrite |
( |
bool |
force | ) |
|
|
private |
◆ MaybeIgnoreError()
void leveldb::DBImpl::MaybeIgnoreError |
( |
Status * |
s | ) |
const |
|
private |
◆ MaybeScheduleCompaction()
void leveldb::DBImpl::MaybeScheduleCompaction |
( |
| ) |
|
|
private |
◆ NewDB()
Status leveldb::DBImpl::NewDB |
( |
| ) |
|
|
private |
◆ NewInternalIterator()
◆ NewIterator()
◆ OpenCompactionOutputFile()
◆ operator=()
void leveldb::DBImpl::operator= |
( |
const DBImpl & |
| ) |
|
|
private |
◆ Put()
◆ RecordBackgroundError()
void leveldb::DBImpl::RecordBackgroundError |
( |
const Status & |
s | ) |
|
|
private |
◆ RecordReadSample()
void leveldb::DBImpl::RecordReadSample |
( |
Slice |
key | ) |
|
◆ Recover()
◆ RecoverLogFile()
◆ ReleaseSnapshot()
void leveldb::DBImpl::ReleaseSnapshot |
( |
const Snapshot * |
snapshot | ) |
|
|
virtual |
◆ TEST_CompactMemTable()
Status leveldb::DBImpl::TEST_CompactMemTable |
( |
| ) |
|
◆ TEST_CompactRange()
void leveldb::DBImpl::TEST_CompactRange |
( |
int |
level, |
|
|
const Slice * |
begin, |
|
|
const Slice * |
end |
|
) |
| |
◆ TEST_MaxNextLevelOverlappingBytes()
int64_t leveldb::DBImpl::TEST_MaxNextLevelOverlappingBytes |
( |
| ) |
|
◆ TEST_NewInternalIterator()
Iterator * leveldb::DBImpl::TEST_NewInternalIterator |
( |
| ) |
|
◆ user_comparator()
const Comparator* leveldb::DBImpl::user_comparator |
( |
| ) |
const |
|
inlineprivate |
◆ Write()
◆ WriteLevel0Table()
◆ DB
◆ bg_compaction_scheduled_
bool leveldb::DBImpl::bg_compaction_scheduled_ |
|
private |
◆ bg_cv_
◆ bg_error_
Status leveldb::DBImpl::bg_error_ |
|
private |
◆ db_lock_
◆ dbname_
const std::string leveldb::DBImpl::dbname_ |
|
private |
◆ env_
Env* const leveldb::DBImpl::env_ |
|
private |
◆ has_imm_
◆ imm_
◆ internal_comparator_
◆ internal_filter_policy_
◆ log_
◆ logfile_
◆ logfile_number_
uint64_t leveldb::DBImpl::logfile_number_ |
|
private |
◆ manual_compaction_
◆ mem_
◆ mutex_
◆ options_
const Options leveldb::DBImpl::options_ |
|
private |
◆ owns_cache_
bool leveldb::DBImpl::owns_cache_ |
|
private |
◆ owns_info_log_
bool leveldb::DBImpl::owns_info_log_ |
|
private |
◆ pending_outputs_
std::set<uint64_t> leveldb::DBImpl::pending_outputs_ |
|
private |
◆ seed_
◆ shutting_down_
◆ snapshots_
◆ stats_
◆ table_cache_
◆ tmp_batch_
◆ versions_
◆ writers_
std::deque<Writer*> leveldb::DBImpl::writers_ |
|
private |
The documentation for this class was generated from the following files: