Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Public Attributes | Private Types | Private Attributes | List of all members
leveldb::DBTest Class Reference
Collaboration diagram for leveldb::DBTest:
Collaboration graph
[legend]

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 ()
 

Public Attributes

std::string dbname_
 
SpecialEnvenv_
 
DBdb_
 
Options last_options_
 

Private Types

enum  OptionConfig { kDefault, kFilter, kUncompressed, kEnd }
 

Private Attributes

const FilterPolicyfilter_policy_
 
int option_config_
 

Detailed Description

Definition at line 190 of file db_test.cc.

Member Enumeration Documentation

Enumerator
kDefault 
kFilter 
kUncompressed 
kEnd 

Definition at line 195 of file db_test.cc.

Constructor & Destructor Documentation

leveldb::DBTest::DBTest ( )
inline

Definition at line 210 of file db_test.cc.

leveldb::DBTest::~DBTest ( )
inline

Definition at line 219 of file db_test.cc.

Member Function Documentation

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

Definition at line 337 of file db_test.cc.

bool leveldb::DBTest::ChangeOptions ( )
inline

Definition at line 228 of file db_test.cc.

void leveldb::DBTest::Close ( )
inline

Definition at line 262 of file db_test.cc.

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

Definition at line 425 of file db_test.cc.

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

Definition at line 312 of file db_test.cc.

int leveldb::DBTest::CountFiles ( )
inline

Definition at line 412 of file db_test.cc.

Options leveldb::DBTest::CurrentOptions ( )
inline

Definition at line 239 of file db_test.cc.

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

Definition at line 254 of file db_test.cc.

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

Definition at line 293 of file db_test.cc.

bool leveldb::DBTest::DeleteAnSSTFile ( )
inline

Definition at line 474 of file db_test.cc.

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

Definition at line 267 of file db_test.cc.

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

Definition at line 445 of file db_test.cc.

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

Definition at line 458 of file db_test.cc.

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

Definition at line 396 of file db_test.cc.

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

Definition at line 441 of file db_test.cc.

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

Definition at line 297 of file db_test.cc.

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

Definition at line 464 of file db_test.cc.

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

Definition at line 431 of file db_test.cc.

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

Definition at line 379 of file db_test.cc.

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

Definition at line 289 of file db_test.cc.

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

Definition at line 258 of file db_test.cc.

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

Definition at line 418 of file db_test.cc.

int leveldb::DBTest::TotalTableFiles ( )
inline

Definition at line 387 of file db_test.cc.

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

Definition at line 274 of file db_test.cc.

Member Data Documentation

DB* leveldb::DBTest::db_

Definition at line 206 of file db_test.cc.

std::string leveldb::DBTest::dbname_

Definition at line 204 of file db_test.cc.

SpecialEnv* leveldb::DBTest::env_

Definition at line 205 of file db_test.cc.

const FilterPolicy* leveldb::DBTest::filter_policy_
private

Definition at line 192 of file db_test.cc.

Options leveldb::DBTest::last_options_

Definition at line 208 of file db_test.cc.

int leveldb::DBTest::option_config_
private

Definition at line 201 of file db_test.cc.


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