0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Functions
Utility.cc File Reference

Definitions for general-purpose utility functions. More...

#include <Common/Compat.h>
#include "Utility.h"
#include <Hypertable/Master/Context.h>
#include <Hypertable/Lib/Key.h>
#include <Hypertable/Lib/KeySpec.h>
#include <Hypertable/Lib/QualifiedRangeSpec.h>
#include <Hypertable/Lib/RangeServer/Client.h>
#include <Hypertable/Lib/RangeSpec.h>
#include <Hypertable/Lib/Schema.h>
#include <Hypertable/Lib/TableIdentifier.h>
#include <Hypertable/Lib/TableMutator.h>
#include <Hypertable/Lib/TableScanner.h>
#include <Hyperspace/Session.h>
#include <AsyncComm/CommAddress.h>
#include <Common/FailureInducer.h>
#include <Common/ScopeGuard.h>
#include <Common/StatusPersister.h>
#include <Common/StringExt.h>
#include <Common/md5.h>
#include <Common/Time.h>
Include dependency graph for Utility.cc:

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...
 
TableParts Hypertable::Utility::get_index_parts (const std::string &schema)
 Gets index parts specified in schema. More...
 
bool Hypertable::Utility::table_exists (ContextPtr &context, const String &id)
 Checks if table ID exists. 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...
 

Detailed Description

Definitions for general-purpose utility functions.

This file contains definitions for a set of general-purpose utility functions used by the Master.

Definition in file Utility.cc.