Bitcoin
Public Member Functions | Public Attributes | Private Types | Private Attributes | List of all members
leveldb::DBTest Class Reference

Public Member Functions

 DBTest ()
 
 ~DBTest ()
 
bool ChangeOptions ()
 
Options CurrentOptions ()
 
DBImpldbfull ()
 
void Reopen (Options *options=NULL)
 
void Close ()
 
void DestroyAndReopen (Options *options=NULL)
 
Status TryReopen (Options *options)
 
Status Put (const std::string &k, const std::string &v)
 
Status Delete (const std::string &k)
 
std::string Get (const std::string &k, const Snapshot *snapshot=NULL)
 
std::string Contents ()
 
std::string AllEntriesFor (const Slice &user_key)
 
int NumTableFilesAtLevel (int level)
 
int TotalTableFiles ()
 
std::string FilesPerLevel ()
 
int CountFiles ()
 
uint64_t Size (const Slice &start, const Slice &limit)
 
void Compact (const Slice &start, const Slice &limit)
 
void MakeTables (int n, const std::string &small, const std::string &large)
 
void FillLevels (const std::string &smallest, const std::string &largest)
 
void DumpFileCounts (const char *label)
 
std::string DumpSSTableList ()
 
std::string IterStatus (Iterator *iter)
 
bool DeleteAnSSTFile ()
 
int RenameLDBToSST ()
 

Public Attributes

std::string dbname_
 
SpecialEnvenv_
 
DBdb_
 
Options last_options_
 

Private Types

enum  OptionConfig {
  kDefault, kReuse, kFilter, kUncompressed,
  kEnd
}
 

Private Attributes

const FilterPolicyfilter_policy_
 
int option_config_
 

Member Enumeration Documentation

◆ OptionConfig

Enumerator
kDefault 
kReuse 
kFilter 
kUncompressed 
kEnd 

Constructor & Destructor Documentation

◆ DBTest()

leveldb::DBTest::DBTest ( )
inline

◆ ~DBTest()

leveldb::DBTest::~DBTest ( )
inline

Member Function Documentation

◆ AllEntriesFor()

std::string leveldb::DBTest::AllEntriesFor ( const Slice user_key)
inline

◆ ChangeOptions()

bool leveldb::DBTest::ChangeOptions ( )
inline

◆ Close()

void leveldb::DBTest::Close ( )
inline

◆ Compact()

void leveldb::DBTest::Compact ( const Slice start,
const Slice limit 
)
inline

◆ Contents()

std::string leveldb::DBTest::Contents ( )
inline

◆ CountFiles()

int leveldb::DBTest::CountFiles ( )
inline

◆ CurrentOptions()

Options leveldb::DBTest::CurrentOptions ( )
inline

◆ dbfull()

DBImpl* leveldb::DBTest::dbfull ( )
inline

◆ Delete()

Status leveldb::DBTest::Delete ( const std::string &  k)
inline

◆ DeleteAnSSTFile()

bool leveldb::DBTest::DeleteAnSSTFile ( )
inline

◆ DestroyAndReopen()

void leveldb::DBTest::DestroyAndReopen ( Options options = NULL)
inline

◆ DumpFileCounts()

void leveldb::DBTest::DumpFileCounts ( const char *  label)
inline

◆ DumpSSTableList()

std::string leveldb::DBTest::DumpSSTableList ( )
inline

◆ FilesPerLevel()

std::string leveldb::DBTest::FilesPerLevel ( )
inline

◆ FillLevels()

void leveldb::DBTest::FillLevels ( const std::string &  smallest,
const std::string &  largest 
)
inline

◆ Get()

std::string leveldb::DBTest::Get ( const std::string &  k,
const Snapshot snapshot = NULL 
)
inline

◆ IterStatus()

std::string leveldb::DBTest::IterStatus ( Iterator iter)
inline

◆ MakeTables()

void leveldb::DBTest::MakeTables ( int  n,
const std::string &  small,
const std::string &  large 
)
inline

◆ NumTableFilesAtLevel()

int leveldb::DBTest::NumTableFilesAtLevel ( int  level)
inline

◆ Put()

Status leveldb::DBTest::Put ( const std::string &  k,
const std::string &  v 
)
inline

◆ RenameLDBToSST()

int leveldb::DBTest::RenameLDBToSST ( )
inline

◆ Reopen()

void leveldb::DBTest::Reopen ( Options options = NULL)
inline

◆ Size()

uint64_t leveldb::DBTest::Size ( const Slice start,
const Slice limit 
)
inline

◆ TotalTableFiles()

int leveldb::DBTest::TotalTableFiles ( )
inline

◆ TryReopen()

Status leveldb::DBTest::TryReopen ( Options options)
inline

Member Data Documentation

◆ db_

DB* leveldb::DBTest::db_

◆ dbname_

std::string leveldb::DBTest::dbname_

◆ env_

SpecialEnv* leveldb::DBTest::env_

◆ filter_policy_

const FilterPolicy* leveldb::DBTest::filter_policy_
private

◆ last_options_

Options leveldb::DBTest::last_options_

◆ option_config_

int leveldb::DBTest::option_config_
private

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