Declarations for general-purpose utility functions. More...
#include <Hypertable/Master/Context.h>
#include <Hypertable/Lib/RangeSpec.h>
#include <Hypertable/Lib/TableIdentifier.h>
#include <Hypertable/Lib/TableParts.h>
#include <AsyncComm/CommAddress.h>
#include <Common/Status.h>
#include <Common/StringExt.h>
#include <Common/Timer.h>
Go to the source code of this file.
Namespaces | |
Hypertable | |
Hypertable definitions | |
Hypertable::Utility | |
General-purpose utilities. | |
Functions | |
void | Hypertable::Utility::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 | Hypertable::Utility::table_exists (ContextPtr &context, const String &name, String &id) |
Checks if table exists and returns table ID. More... | |
bool | Hypertable::Utility::table_exists (ContextPtr &context, const String &id) |
Checks if table ID exists. More... | |
TableParts | Hypertable::Utility::get_index_parts (const std::string &schema) |
Gets index parts specified in schema. More... | |
void | Hypertable::Utility::verify_table_name_availability (ContextPtr &context, const String &name, String &id) |
Checks if table name is available. More... | |
void | Hypertable::Utility::create_table_in_hyperspace (ContextPtr &context, const String &name, const String &schema_str, TableIdentifierManaged *table) |
Creates a table in Hyperspace. More... | |
void | Hypertable::Utility::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 | Hypertable::Utility::create_table_write_metadata (ContextPtr &context, TableIdentifier *table) |
Creates initial METADATA table entry for table . More... | |
bool | Hypertable::Utility::next_available_server (ContextPtr &context, String &location, bool urgent=false) |
Gets name of next available server. More... | |
void | Hypertable::Utility::create_table_load_range (ContextPtr &context, const String &location, TableIdentifier &table, RangeSpec &range, bool needs_compaction) |
Loads a table's initial range. More... | |
void | Hypertable::Utility::create_table_acknowledge_range (ContextPtr &context, const String &location, TableIdentifier &table, RangeSpec &range) |
Calls RangeServer::acknowledge_load for a range. More... | |
int64_t | Hypertable::Utility::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 | Hypertable::Utility::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 | Hypertable::Utility::root_range_location (ContextPtr &context) |
Returns location of root METADATA range. More... | |
bool | Hypertable::Utility::status (ContextPtr &context, Timer &timer, Status &status) |
Runs a status check on the master. More... | |
void | Hypertable::Utility::shutdown_rangeserver (ContextPtr &context, CommAddress &addr) |
Sends a shutdown command to a rangeserver. More... | |
Declarations for general-purpose utility functions.
This file contains declarations for a set of general-purpose utility functions used by the Master.
Definition in file Utility.h.