Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
leveldb::Compaction Class Reference

#include <version_set.h>

Collaboration diagram for leveldb::Compaction:
Collaboration graph
[legend]

Public Member Functions

 ~Compaction ()
 
int level () const
 
VersionEditedit ()
 
int num_input_files (int which) const
 
FileMetaDatainput (int which, int i) const
 
uint64_t MaxOutputFileSize () const
 
bool IsTrivialMove () const
 
void AddInputDeletions (VersionEdit *edit)
 
bool IsBaseLevelForKey (const Slice &user_key)
 
bool ShouldStopBefore (const Slice &internal_key)
 
void ReleaseInputs ()
 

Private Member Functions

 Compaction (int level)
 

Private Attributes

int level_
 
uint64_t max_output_file_size_
 
Versioninput_version_
 
VersionEdit edit_
 
std::vector< FileMetaData * > inputs_ [2]
 
std::vector< FileMetaData * > grandparents_
 
size_t grandparent_index_
 
bool seen_key_
 
int64_t overlapped_bytes_
 
size_t level_ptrs_ [config::kNumLevels]
 

Friends

class Version
 
class VersionSet
 

Detailed Description

Definition at line 324 of file version_set.h.

Constructor & Destructor Documentation

leveldb::Compaction::~Compaction ( )

Definition at line 1458 of file version_set.cc.

leveldb::Compaction::Compaction ( int  level)
explicitprivate

Definition at line 1446 of file version_set.cc.

Member Function Documentation

void leveldb::Compaction::AddInputDeletions ( VersionEdit edit)

Definition at line 1473 of file version_set.cc.

VersionEdit* leveldb::Compaction::edit ( )
inline

Definition at line 334 of file version_set.h.

FileMetaData* leveldb::Compaction::input ( int  which,
int  i 
) const
inline

Definition at line 340 of file version_set.h.

bool leveldb::Compaction::IsBaseLevelForKey ( const Slice user_key)

Definition at line 1481 of file version_set.cc.

bool leveldb::Compaction::IsTrivialMove ( ) const

Definition at line 1464 of file version_set.cc.

int leveldb::Compaction::level ( ) const
inline

Definition at line 330 of file version_set.h.

uint64_t leveldb::Compaction::MaxOutputFileSize ( ) const
inline

Definition at line 343 of file version_set.h.

int leveldb::Compaction::num_input_files ( int  which) const
inline

Definition at line 337 of file version_set.h.

void leveldb::Compaction::ReleaseInputs ( )

Definition at line 1524 of file version_set.cc.

bool leveldb::Compaction::ShouldStopBefore ( const Slice internal_key)

Definition at line 1502 of file version_set.cc.

Friends And Related Function Documentation

friend class Version
friend

Definition at line 366 of file version_set.h.

friend class VersionSet
friend

Definition at line 367 of file version_set.h.

Member Data Documentation

VersionEdit leveldb::Compaction::edit_
private

Definition at line 374 of file version_set.h.

size_t leveldb::Compaction::grandparent_index_
private

Definition at line 382 of file version_set.h.

std::vector<FileMetaData*> leveldb::Compaction::grandparents_
private

Definition at line 381 of file version_set.h.

Version* leveldb::Compaction::input_version_
private

Definition at line 373 of file version_set.h.

std::vector<FileMetaData*> leveldb::Compaction::inputs_[2]
private

Definition at line 377 of file version_set.h.

int leveldb::Compaction::level_
private

Definition at line 371 of file version_set.h.

size_t leveldb::Compaction::level_ptrs_[config::kNumLevels]
private

Definition at line 393 of file version_set.h.

uint64_t leveldb::Compaction::max_output_file_size_
private

Definition at line 372 of file version_set.h.

int64_t leveldb::Compaction::overlapped_bytes_
private

Definition at line 384 of file version_set.h.

bool leveldb::Compaction::seen_key_
private

Definition at line 383 of file version_set.h.


The documentation for this class was generated from the following files: