0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Hypertable::GcWorker Class Reference

#include <GcWorker.h>

Collaboration diagram for Hypertable::GcWorker:
Collaboration graph
[legend]

Public Member Functions

 GcWorker (ContextPtr &context)
 
void gc ()
 

Private Member Functions

void scan_metadata (CountMap &files_map)
 
void delete_row (const std::string &row, TableMutatorPtr &mutator)
 
void delete_cell (const Cell &cell, TableMutatorPtr &mutator)
 
void insert_files (CountMap &map, const char *buf, size_t len, int c=0)
 
void insert_file (CountMap &map, const char *fname, int c)
 
void reap (CountMap &files_map)
 Currently only stale cs files and range directories are reaped Table directories probably should be obtained when removing rows in METADATA. More...
 

Private Attributes

ContextPtr m_context
 
String m_tables_dir
 

Detailed Description

Definition at line 35 of file GcWorker.h.

Constructor & Destructor Documentation

GcWorker::GcWorker ( ContextPtr context)

Definition at line 35 of file GcWorker.cc.

Member Function Documentation

void GcWorker::delete_cell ( const Cell cell,
TableMutatorPtr mutator 
)
private

Definition at line 135 of file GcWorker.cc.

void GcWorker::delete_row ( const std::string &  row,
TableMutatorPtr mutator 
)
private

Definition at line 120 of file GcWorker.cc.

void GcWorker::gc ( )

Definition at line 41 of file GcWorker.cc.

void GcWorker::insert_file ( CountMap map,
const char *  fname,
int  c 
)
private

Definition at line 163 of file GcWorker.cc.

void GcWorker::insert_files ( CountMap map,
const char *  buf,
size_t  len,
int  c = 0 
)
private

Definition at line 146 of file GcWorker.cc.

void GcWorker::reap ( CountMap files_map)
private

Currently only stale cs files and range directories are reaped Table directories probably should be obtained when removing rows in METADATA.

Definition at line 178 of file GcWorker.cc.

void GcWorker::scan_metadata ( CountMap files_map)
private

Definition at line 54 of file GcWorker.cc.

Member Data Documentation

ContextPtr Hypertable::GcWorker::m_context
private

Definition at line 48 of file GcWorker.h.

String Hypertable::GcWorker::m_tables_dir
private

Definition at line 49 of file GcWorker.h.


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