0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
Hypertable::Utility Namespace Reference

General-purpose utilities. More...

Functions

void get_table_server_set (ContextPtr &context, const String &id, const String &row, StringSet &servers)
 Gets set of servers holding ranges for a given table. More...
 
bool table_exists (ContextPtr &context, const String &name, String &id)
 Checks if table exists and returns table ID. More...
 
TableParts get_index_parts (const std::string &schema)
 Gets index parts specified in schema. More...
 
bool table_exists (ContextPtr &context, const String &id)
 Checks if table ID exists. More...
 
void verify_table_name_availability (ContextPtr &context, const String &name, String &id)
 Checks if table name is available. More...
 
void create_table_in_hyperspace (ContextPtr &context, const String &name, const String &schema_str, TableIdentifierManaged *table)
 Creates a table in Hyperspace. More...
 
void prepare_index (ContextPtr &context, const String &name, const String &schema_str, bool qualifier, String &index_name, String &index_schema)
 Prepares index schema and table name. More...
 
void create_table_write_metadata (ContextPtr &context, TableIdentifier *table)
 Creates initial METADATA table entry for table. More...
 
bool next_available_server (ContextPtr &context, String &location, bool urgent=false)
 Gets name of next available server. More...
 
void create_table_load_range (ContextPtr &context, const String &location, TableIdentifier &table, RangeSpec &range, bool needs_compaction)
 Loads a table's initial range. More...
 
void create_table_acknowledge_range (ContextPtr &context, const String &location, TableIdentifier &table, RangeSpec &range)
 Calls RangeServer::acknowledge_load for a range. More...
 
int64_t range_hash_code (const TableIdentifier &table, const RangeSpec &range, const String &qualifier)
 Returns a hash code for a range with an optional qualifer string. More...
 
String range_hash_string (const TableIdentifier &table, const RangeSpec &range, const String &qualifier)
 Returns string representation of hash code for a range with an optional qualifer string. More...
 
String root_range_location (ContextPtr &context)
 Returns location of root METADATA range. More...
 
bool status (ContextPtr &context, Timer &timer, Status &status)
 Runs a status check on the master. More...
 
void shutdown_rangeserver (ContextPtr &context, CommAddress &addr)
 Sends a shutdown command to a rangeserver. More...
 

Detailed Description

General-purpose utilities.