27 #ifndef Hypertable_RangeServer_IndexUpdater_h
28 #define Hypertable_RangeServer_IndexUpdater_h
94 bool has_index,
bool has_qualifier_index);
118 #endif // Hypertable_RangeServer_IndexUpdater_h
static std::mutex ms_mutex
void purge(const Key &key, const ByteString &value)
Purges a key from index tables.
std::string String
A String is simply a typedef to std::string.
std::shared_ptr< IndexUpdater > IndexUpdaterPtr
Smart pointer to IndexUpdater.
static void clear_cache()
Clears both value and qualifier caches.
static TableMap ms_qualifier_index_cache
static void close()
Cleanup function; called before leaving main()
std::map< String, TablePtr > TableMap
A class managing one or more serializable ByteStrings.
Provides the ability to mutate a table in the form of adding and deleting rows and cells...
TableMutatorAsync * m_qualifier_index_mutator
Mutator for qualifier index table.
static TablePtr load_table(const String &table_name)
Helper class for updating index tables.
TableMutatorAsync * m_index_mutator
Mutator for value index table.
static NameIdMapperPtr ms_namemap
static TableMap ms_index_cache
bool m_qualifier_index_map[256]
Provides access to internal components of opaque key.
~IndexUpdater()
Destructor.
Factory class for creating IndexUpdater objects.
A String class based on std::string.
std::shared_ptr< Schema > SchemaPtr
Smart pointer to Schema.
static IndexUpdaterPtr create(const String &table_id, SchemaPtr &schema, bool has_index, bool has_qualifier_index)
Factory function.
ResultCallback * m_cb
Async mutator callback object.
IndexUpdater(SchemaPtr &primary_schema, TablePtr index_table, TablePtr qualifier_index_table)
Constructor.
Represents an open table.
std::shared_ptr< NameIdMapper > NameIdMapperPtr
Smart pointer to NameIdMapper.
void add(const Key &key, const ByteString &value)
Adds a key to index tables.
std::shared_ptr< Table > TablePtr