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

#include <table_builder.h>

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

Classes

struct  Rep
 

Public Member Functions

 TableBuilder (const Options &options, WritableFile *file)
 
 ~TableBuilder ()
 
Status ChangeOptions (const Options &options)
 
void Add (const Slice &key, const Slice &value)
 
void Flush ()
 
Status status () const
 
Status Finish ()
 
void Abandon ()
 
uint64_t NumEntries () const
 
uint64_t FileSize () const
 

Private Member Functions

bool ok () const
 
void WriteBlock (BlockBuilder *block, BlockHandle *handle)
 
void WriteRawBlock (const Slice &data, CompressionType, BlockHandle *handle)
 
 TableBuilder (const TableBuilder &)
 
void operator= (const TableBuilder &)
 

Private Attributes

Reprep_
 

Detailed Description

Definition at line 26 of file table_builder.h.

Constructor & Destructor Documentation

leveldb::TableBuilder::TableBuilder ( const Options options,
WritableFile file 
)

Definition at line 63 of file table_builder.cc.

leveldb::TableBuilder::~TableBuilder ( )

Definition at line 70 of file table_builder.cc.

leveldb::TableBuilder::TableBuilder ( const TableBuilder )
private

Member Function Documentation

void leveldb::TableBuilder::Abandon ( )

Definition at line 256 of file table_builder.cc.

void leveldb::TableBuilder::Add ( const Slice key,
const Slice value 
)

Definition at line 92 of file table_builder.cc.

Status leveldb::TableBuilder::ChangeOptions ( const Options options)

Definition at line 76 of file table_builder.cc.

uint64_t leveldb::TableBuilder::FileSize ( ) const

Definition at line 266 of file table_builder.cc.

Status leveldb::TableBuilder::Finish ( )

Definition at line 199 of file table_builder.cc.

void leveldb::TableBuilder::Flush ( )

Definition at line 123 of file table_builder.cc.

uint64_t leveldb::TableBuilder::NumEntries ( ) const

Definition at line 262 of file table_builder.cc.

bool leveldb::TableBuilder::ok ( ) const
inlineprivate

Definition at line 78 of file table_builder.h.

void leveldb::TableBuilder::operator= ( const TableBuilder )
private
Status leveldb::TableBuilder::status ( ) const

Definition at line 195 of file table_builder.cc.

void leveldb::TableBuilder::WriteBlock ( BlockBuilder block,
BlockHandle handle 
)
private

Definition at line 139 of file table_builder.cc.

void leveldb::TableBuilder::WriteRawBlock ( const Slice data,
CompressionType  type,
BlockHandle handle 
)
private

Definition at line 175 of file table_builder.cc.

Member Data Documentation

Rep* leveldb::TableBuilder::rep_
private

Definition at line 82 of file table_builder.h.


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