27 #ifndef Hypertable_Master_Utility_h
28 #define Hypertable_Master_Utility_h
147 const String &schema_str,
bool qualifier,
199 bool needs_compaction);
273 #endif // Hypertable_Master_Utility_h
std::set< String > StringSet
STL Set managing Strings.
bool next_available_server(ContextPtr &context, String &location, bool urgent)
Gets name of next available server.
void prepare_index(ContextPtr &context, const String &name, const String &schema_str, bool qualifier, String &index_name, String &index_schema_str)
Prepares index schema and table name.
Holds Nagios-style program status information.
std::string String
A String is simply a typedef to std::string.
Declarations for TableIdentifier and TableIdentifierManaged.
Declarations for CommAddress.
void create_table_load_range(ContextPtr &context, const String &location, TableIdentifier &table, RangeSpec &range, bool needs_compaction)
Loads a table's initial range.
void create_table_acknowledge_range(ContextPtr &context, const String &location, TableIdentifier &table, RangeSpec &range)
Calls RangeServer::acknowledge_load for a range.
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.
Represents a set of table parts (sub-tables).
std::shared_ptr< Context > ContextPtr
Smart pointer to Context.
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.
Wrapper for TableIdentifier providing member storage.
void verify_table_name_availability(ContextPtr &context, const String &name, String &id)
Checks if table name is available.
bool status(ContextPtr &context, Timer &timer, Status &status)
Runs a status check on the master.
A timer class to keep timeout states across AsyncComm related calls.
Declarations for RangeSpec and RangeSpecManaged.
bool table_exists(ContextPtr &context, const String &name, String &id)
Checks if table exists and returns table ID.
void create_table_in_hyperspace(ContextPtr &context, const String &name, const String &schema_str, TableIdentifierManaged *table)
Creates a table in Hyperspace.
void create_table_write_metadata(ContextPtr &context, TableIdentifier *table)
Creates initial METADATA table entry for table.
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.
String root_range_location(ContextPtr &context)
Returns location of root METADATA range.
A timer class to keep timeout states across AsyncComm related calls.
void shutdown_rangeserver(ContextPtr &context, CommAddress &addr)
Sends a shutdown command to a rangeserver.
TableParts get_index_parts(const std::string &schema)
Gets index parts specified in schema.
String extensions and helpers: sets, maps, append operators etc.
Declarations for Context.
Address abstraction to hold either proxy name or IPv4:port address.
Declarations for TableParts.