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

Helper class for updating index tables. More...

#include <IndexUpdater.h>

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

Public Member Functions

 IndexUpdater (SchemaPtr &primary_schema, TablePtr index_table, TablePtr qualifier_index_table)
 Constructor. More...
 
 ~IndexUpdater ()
 Destructor. More...
 
void purge (const Key &key, const ByteString &value)
 Purges a key from index tables. More...
 
void add (const Key &key, const ByteString &value)
 Adds a key to index tables. More...
 

Private Attributes

TableMutatorAsyncm_index_mutator
 Mutator for value index table. More...
 
TableMutatorAsyncm_qualifier_index_mutator
 Mutator for qualifier index table. More...
 
ResultCallbackm_cb
 Async mutator callback object. More...
 
bool m_index_map [256]
 
bool m_qualifier_index_map [256]
 

Friends

class IndexUpdaterFactory
 

Detailed Description

Helper class for updating index tables.

Definition at line 47 of file IndexUpdater.h.

Constructor & Destructor Documentation

Hypertable::IndexUpdater::IndexUpdater ( SchemaPtr primary_schema,
TablePtr  index_table,
TablePtr  qualifier_index_table 
)

Constructor.

Objects are created by IndexUpdaterFactory

Definition at line 56 of file IndexUpdater.cc.

Hypertable::IndexUpdater::~IndexUpdater ( )
inline

Destructor.

Definition at line 58 of file IndexUpdater.h.

Member Function Documentation

void Hypertable::IndexUpdater::add ( const Key key,
const ByteString value 
)

Adds a key to index tables.

Definition at line 105 of file IndexUpdater.cc.

void Hypertable::IndexUpdater::purge ( const Key key,
const ByteString value 
)

Purges a key from index tables.

Definition at line 77 of file IndexUpdater.cc.

Friends And Related Function Documentation

friend class IndexUpdaterFactory
friend

Definition at line 48 of file IndexUpdater.h.

Member Data Documentation

ResultCallback* Hypertable::IndexUpdater::m_cb
private

Async mutator callback object.

Definition at line 81 of file IndexUpdater.h.

bool Hypertable::IndexUpdater::m_index_map[256]
private

Definition at line 82 of file IndexUpdater.h.

TableMutatorAsync* Hypertable::IndexUpdater::m_index_mutator
private

Mutator for value index table.

Definition at line 75 of file IndexUpdater.h.

bool Hypertable::IndexUpdater::m_qualifier_index_map[256]
private

Definition at line 83 of file IndexUpdater.h.

TableMutatorAsync* Hypertable::IndexUpdater::m_qualifier_index_mutator
private

Mutator for qualifier index table.

Definition at line 78 of file IndexUpdater.h.


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