22 #ifndef Hypertable_Lib_Namespace_h
23 #define Hypertable_Lib_Namespace_h
44 #include <boost/tokenizer.hpp>
92 void compact(
const std::string &name,
const std::string &row, uint32_t flags);
139 void create_table(
const std::string &name,
const std::string &schema_str);
195 void alter_table(
const std::string &table_name,
const std::string &schema_str,
bool force);
244 std::string
get_schema_str(
const std::string &name,
bool with_ids=
false);
252 void get_listing(
bool include_sub_entries, std::vector<NamespaceListing> &listing);
260 void rename_table(
const std::string &old_name,
const std::string &new_name);
270 void drop_table(
const std::string &name,
bool if_exists);
299 return (s+table_name);
304 return (s+table_name);
309 typedef boost::tokenizer<boost::char_separator<char> >
Tokenizer;
339 #endif // Hypertable_Lib_Namespace_h
std::string get_qualifier_index_table_name(const std::string &table_name)
std::string get_index_table_name(const std::string &table_name)
void get_table_splits(const std::string &name, TableSplitsContainer &splits)
Returns a list of existing table names.
TableCachePtr m_table_cache
TablePtr open_table(const std::string &name, int32_t flags=0)
Opens a table.
std::string String
A String is simply a typedef to std::string.
std::shared_ptr< RangeLocator > RangeLocatorPtr
Smart pointer to RangeLocator.
ApplicationQueueInterfacePtr m_app_queue
Lib::Master::ClientPtr m_master_client
void rebuild_indices(const std::string &table_name, TableParts table_parts)
Rebuild a table's indices.
void compact(const std::string &name, const std::string &row, uint32_t flags)
Performs a manual compaction.
std::string get_table_id(const std::string &name)
Returns the table identifier for a table.
static void canonicalize(String *original)
Get canonical format of name/id string.
ConnectionManagerPtr m_conn_manager
Represents a set of table parts (sub-tables).
bool m_hyperspace_reconnect
TablePtr _open_table(const std::string &full_name, int32_t flags=0)
std::shared_ptr< Namespace > NamespacePtr
Shared smart pointer to Namespace.
std::shared_ptr< Client > ClientPtr
std::string get_full_name(const std::string &sub_name)
std::shared_ptr< Session > SessionPtr
void get_listing(bool include_sub_entries, std::vector< NamespaceListing > &listing)
Returns a list of existing tables & namesspaces.
void create_table(const std::string &name, const std::string &schema_str)
Creates a table.
The API of HQL interpreter.
SchemaPtr get_schema(const std::string &name)
Returns a smart ptr to a schema object for a table.
std::shared_ptr< Properties > PropertiesPtr
std::string m_toplevel_dir
Declarations for ClientObject.
std::shared_ptr< ApplicationQueueInterface > ApplicationQueueInterfacePtr
Smart pointer to ApplicationQueueInterface.
Client * get_client()
Returns a pointer to the client object which created this Namespace.
Base class for Hypertable client objects.
void create_index_table(const std::string &primary_table_name)
const std::string & get_id() const
std::shared_ptr< TableCache > TableCachePtr
Smart pointer to TableCache.
Entry point to AsyncComm service.
Declarations for ConnectionManager.
void alter_table(const std::string &table_name, SchemaPtr &schema, bool force)
Alter table schema.
bool exists_table(const std::string &name)
Checks if the table exists.
boost::tokenizer< boost::char_separator< char > > Tokenizer
std::string get_schema_str(const std::string &name, bool with_ids=false)
Returns the schema for a table.
void rename_table(const std::string &old_name, const std::string &new_name)
Renames a table.
Declarations for MasterClient This file contains declarations for MasterClient, a client interface cl...
A String class based on std::string.
NameIdMapperPtr m_namemap
const std::string & get_name() const
std::shared_ptr< Schema > SchemaPtr
Smart pointer to Schema.
Namespace(const std::string &name, const std::string &id, PropertiesPtr &props, ConnectionManagerPtr &conn_manager, Hyperspace::SessionPtr &hyperspace, ApplicationQueueInterfacePtr &app_queue, NameIdMapperPtr &namemap, Lib::Master::ClientPtr &master_client, RangeLocatorPtr &range_locator, TableCachePtr &table_cache, uint32_t timeout, Client *client)
Constructs the object.
Declarations for ApplicationQueueInterface.
RangeLocatorPtr m_range_locator
std::shared_ptr< ConnectionManager > ConnectionManagerPtr
Smart pointer to ConnectionManager.
Hyperspace::SessionPtr m_hyperspace
void drop_table(const std::string &name, bool if_exists)
Removes a table.
std::shared_ptr< NameIdMapper > NameIdMapperPtr
Smart pointer to NameIdMapper.
std::shared_ptr< Table > TablePtr
void refresh_table(const std::string &name)
Refreshes the cached table entry.
Declarations for TableParts.