Client interface library. More...
Modules | |
Master | |
Master client library. | |
RangeServer | |
RangeServer client library. | |
RangeServerRecovery | |
RangeServer recovery data structures. | |
Namespaces | |
Hypertable::MetaLog | |
MetaLog framework. | |
Hypertable::MetaLog::EntityType | |
MetaLog entity type constants | |
Hypertable::SystemVariable | |
Classes | |
class | Hypertable::AccessGroupOptions |
Specification for access group options. More... | |
class | Hypertable::AccessGroupSpec |
Access group specification. More... | |
class | Hypertable::BalancePlan |
Balance plan. More... | |
class | Hypertable::BlockCompressionCodec |
Abstract base class for block compression codecs. More... | |
class | Hypertable::BlockCompressionCodecBmz |
Block compressor that uses the BMZ algorithm. More... | |
class | Hypertable::BlockCompressionCodecLzo |
Block compressor that uses the LZO algorithm. More... | |
class | Hypertable::BlockCompressionCodecNone |
Block compressor that performs no compression. More... | |
class | Hypertable::BlockCompressionCodecQuicklz |
Block compressor that uses the QUICKLZ algorithm. More... | |
class | Hypertable::BlockCompressionCodecSnappy |
Block compressor that uses the SNAPPY algorithm. More... | |
class | Hypertable::BlockCompressionCodecZlib |
Block compressor that uses the ZLIB algorithm. More... | |
class | Hypertable::BlockHeader |
Base class for block headers. More... | |
class | Hypertable::BlockHeaderCellStore |
cell store block header. More... | |
class | Hypertable::BlockHeaderCommitLog |
Commit log block header. More... | |
class | Hypertable::Canonicalize |
Static class with methods for canonicalizing table and namespace names. More... | |
class | Hypertable::Client |
class | Hypertable::ClientObject |
Base class for Hypertable client objects. More... | |
class | Hypertable::ClusterId |
Provides access to the cluster ID. More... | |
class | Hypertable::ColumnFamilyOptions |
Specification for column family options. More... | |
class | Hypertable::ColumnFamilySpec |
Column family specification. More... | |
class | Hypertable::Lib::ColumnPredicate |
Represents a column predicate (e.g. More... | |
class | Hypertable::CommitLog |
Commit log for persisting range updates. More... | |
struct | Hypertable::CommitLog::CumulativeFragmentData |
struct | Hypertable::CommitLogBlockInfo |
Holds information about an individual block. More... | |
class | Hypertable::CommitLogBlockStream |
Abstraction for reading a stream of blocks from a commit log file. More... | |
class | Hypertable::CommitLogReader |
Provides sequential access to blocks in a commit log. More... | |
class | Hypertable::HqlCommandInterpreter |
HQL command interpreter. More... | |
class | Hypertable::HqlHelpText |
Holds and provides access to help text. More... | |
class | Hypertable::MetaLog::Header |
Metalog file header. More... | |
class | Hypertable::MetaLog::Definition |
Defines the set of valid MetaLog entities for a server. More... | |
class | Hypertable::MetaLog::Entity |
Base class for MetaLog entities. More... | |
class | Hypertable::MetaLog::EntityRecover |
Recover entity used for sanity checking. More... | |
class | Hypertable::MetaLog::EntityHeader |
Entity header. More... | |
class | Hypertable::MetaLog::Reader |
Reads a MetaLog. More... | |
class | Hypertable::MetaLog::Writer |
Writes a MetaLog. More... | |
class | Hypertable::MetaLog::Writer::WriteScheduler |
Periodically flushes deferred writes to disk. More... | |
class | Hypertable::Namespace |
class | Hypertable::ProfileDataScanner |
Scanner profile data. More... | |
class | Hypertable::PseudoTables |
Singleton class holding Schema objects for pseudo tables. More... | |
class | Hypertable::QualifiedRangeSpec |
Qualified (with table identifier) range specification. More... | |
class | Hypertable::QualifiedRangeSpecManaged |
Qualified (with table identifier) range specification, with storage. More... | |
struct | Hypertable::LtQualifiedRangeSpecManaged |
class | Hypertable::QualifiedRangeHash |
struct | Hypertable::QualifiedRangeEqual |
class | Hypertable::RangeAddrInfo |
Holds range location. More... | |
class | Hypertable::RangeLocationInfo |
Holds range start and end row plus location. More... | |
class | Hypertable::RangeMoveSpec |
Range move specification. More... | |
class | Hypertable::Lib::RangeServer::Protocol |
Master client protocol information. More... | |
class | Hypertable::RangeSpec |
Range specification. More... | |
class | Hypertable::RangeSpecManaged |
Wrapper for RangeSpec providing member storage. More... | |
class | Hypertable::RangeState |
Range state. More... | |
class | Hypertable::RangeStateManaged |
Range state with memory management. More... | |
class | Hypertable::Lib::RS_METRICS::RangeMeasurement |
Single range metrics measurement. More... | |
class | Hypertable::Lib::RS_METRICS::RangeMetrics |
Aggregates metrics for an individual range. More... | |
class | Hypertable::Lib::RS_METRICS::ReaderTable |
Reads metrics from the sys/RS_METRICS table. More... | |
class | Hypertable::Lib::RS_METRICS::ServerMeasurement |
Single server metrics measurement. More... | |
class | Hypertable::Lib::RS_METRICS::ServerMetrics |
Aggregates metrics for an individual RangeServer. More... | |
class | Hypertable::ScanBlock |
Encapsulates a block of scan results. More... | |
class | Hypertable::Schema |
Schema specification. More... | |
struct | Hypertable::SystemVariable::Spec |
Holds a variable code and boolean value. More... | |
class | Hypertable::TableIdentifier |
Table identifier. More... | |
class | Hypertable::TableIdentifierManaged |
Wrapper for TableIdentifier providing member storage. More... | |
class | Hypertable::TableMutatorIntervalHandler |
Timer handler for periodically flushing a shared mutator. More... | |
class | Hypertable::TableParts |
Represents a set of table parts (sub-tables). More... | |
class | Hypertable::TableScanner |
Synchronous table scanner. More... | |
class | Hypertable::TableScannerAsync |
Asynchronous table scanner. More... | |
Typedefs | |
typedef std::vector < AccessGroupSpec * > | Hypertable::AccessGroupSpecs |
Vector of AccessGroupSpec pointers. More... | |
typedef std::shared_ptr < BalancePlan > | Hypertable::BalancePlanPtr |
typedef std::shared_ptr < BlockCompressionCodec > | Hypertable::BlockCompressionCodecPtr |
Smart pointer to BlockCompressionCodec. More... | |
typedef std::shared_ptr< Client > | Hypertable::ClientPtr |
typedef std::shared_ptr < ClientObject > | Hypertable::ClientObjectPtr |
Smart pointer to ClientObject. More... | |
typedef std::vector < ColumnFamilySpec * > | Hypertable::ColumnFamilySpecs |
Vector of ColumnFamilySpec pointers. More... | |
typedef std::shared_ptr < CommitLog > | Hypertable::CommitLogPtr |
Smart pointer to CommitLog. More... | |
typedef std::shared_ptr < CommitLogReader > | Hypertable::CommitLogReaderPtr |
Smart pointer to CommitLogReader. More... | |
typedef std::shared_ptr < Definition > | Hypertable::MetaLog::DefinitionPtr |
Smart pointer to Definition. More... | |
typedef std::shared_ptr< Entity > | Hypertable::MetaLog::EntityPtr |
Smart pointer to Entity. More... | |
typedef std::shared_ptr< Reader > | Hypertable::MetaLog::ReaderPtr |
Smart pointer to Reader. More... | |
typedef std::shared_ptr< Writer > | Hypertable::MetaLog::WriterPtr |
Smart pointer to Writer. More... | |
typedef std::shared_ptr < Namespace > | Hypertable::NamespacePtr |
Shared smart pointer to Namespace. More... | |
typedef std::shared_ptr < RangeMoveSpec > | Hypertable::RangeMoveSpecPtr |
typedef std::map< String, RangeMetrics > | Hypertable::Lib::RS_METRICS::RangeMetricsMap |
typedef std::shared_ptr < ScanBlock > | Hypertable::ScanBlockPtr |
Smart pointer to ScanBlock. More... | |
typedef std::shared_ptr< Schema > | Hypertable::SchemaPtr |
Smart pointer to Schema. More... | |
typedef std::shared_ptr < TableMutatorIntervalHandler > | Hypertable::TableMutatorIntervalHandlerPtr |
Smart pointer to TableMutatorIntervalHandler. More... | |
typedef std::shared_ptr < TableScanner > | Hypertable::TableScannerPtr |
Smart pointer to TableScanner. More... | |
typedef std::shared_ptr < TableScannerAsync > | Hypertable::TableScannerAsyncPtr |
Smart pointer to TableScannerAsync. More... | |
Functions | |
std::ostream & | Hypertable::operator<< (std::ostream &os, const BalancePlan &plan) |
bool | Hypertable::operator== (const BlockHeader &lhs, const BlockHeader &rhs) |
Equality operator for BlockHeader type. More... | |
bool | Hypertable::operator== (const BlockHeaderCellStore &lhs, const BlockHeaderCellStore &rhs) |
Equality operator for BlockHeaderCellStore type. More... | |
bool | Hypertable::operator== (const BlockHeaderCommitLog &lhs, const BlockHeaderCommitLog &rhs) |
Equality operator for BlockHeaderCommitLog type. More... | |
Hypertable::Client::Client (const std::string &install_dir, const std::string &config_file, uint32_t default_timeout_ms=0) | |
Constructs the object using the specified config file. More... | |
Hypertable::Client::Client (const std::string &install_dir=String(), uint32_t default_timeout_ms=0) | |
Constructs the object using the default config file. More... | |
Hypertable::Client::~Client () | |
void | Hypertable::Client::create_namespace (const std::string &name, Namespace *base=NULL, bool create_intermediate=false, bool if_not_exists=false) |
Creates a namespace. More... | |
NamespacePtr | Hypertable::Client::open_namespace (const std::string &name, Namespace *base=NULL) |
Opens a Namespace. More... | |
bool | Hypertable::Client::exists_namespace (const std::string &name, Namespace *base=NULL) |
Checks if the namespace exists. More... | |
void | Hypertable::Client::drop_namespace (const std::string &name, Namespace *base=NULL, bool if_exists=false) |
Removes a namespace. More... | |
Hyperspace::SessionPtr & | Hypertable::Client::get_hyperspace_session () |
Lib::Master::ClientPtr | Hypertable::Client::get_master_client () |
NameIdMapperPtr | Hypertable::Client::get_nameid_mapper () |
void | Hypertable::Client::close () |
void | Hypertable::Client::shutdown () |
HqlInterpreter * | Hypertable::Client::create_hql_interpreter (bool immutable_namespace=true) |
void | Hypertable::Client::initialize () |
std::ostream & | Hypertable::Lib::operator<< (std::ostream &os, const ColumnPredicate &cp) |
std::ostream & | Hypertable::MetaLog::operator<< (std::ostream &os, Entity &entity) |
ostream shift function for Entity objects. More... | |
std::ostream & | Hypertable::operator<< (std::ostream &os, const QualifiedRangeSpec &qualified_range) |
std::ostream & | Hypertable::operator<< (std::ostream &os, const QualifiedRangeSpecManaged &qualified_range) |
std::ostream & | Hypertable::operator<< (std::ostream &os, const RangeMoveSpec &move_spec) |
std::ostream & | Hypertable::operator<< (std::ostream &os, const RangeSpec &range) |
std::ostream & | Hypertable::operator<< (std::ostream &out, const RangeState &st) |
ostream shift function for RangeState objects. More... | |
std::ostream & | Hypertable::operator<< (std::ostream &os, const TableIdentifier &tid) |
void | Hypertable::copy (TableScanner &scanner, CellsBuilder &b) |
void | Hypertable::copy (TableScannerPtr &p, CellsBuilder &v) |
Client interface library.
The Lib module contains the Hypertable client library which contains Hypertable specific code that is shared by clients, the RangeServer and the Master.
typedef std::vector<AccessGroupSpec *> Hypertable::AccessGroupSpecs |
Vector of AccessGroupSpec pointers.
Definition at line 636 of file AccessGroupSpec.h.
typedef std::shared_ptr<BalancePlan> Hypertable::BalancePlanPtr |
Definition at line 81 of file BalancePlan.h.
typedef std::shared_ptr<BlockCompressionCodec> Hypertable::BlockCompressionCodecPtr |
Smart pointer to BlockCompressionCodec.
Definition at line 109 of file BlockCompressionCodec.h.
typedef std::shared_ptr<ClientObject> Hypertable::ClientObjectPtr |
Smart pointer to ClientObject.
Definition at line 51 of file ClientObject.h.
typedef std::shared_ptr<Client> Hypertable::ClientPtr |
typedef std::vector<ColumnFamilySpec *> Hypertable::ColumnFamilySpecs |
Vector of ColumnFamilySpec pointers.
Definition at line 442 of file ColumnFamilySpec.h.
typedef std::shared_ptr<CommitLog> Hypertable::CommitLogPtr |
Smart pointer to CommitLog.
Definition at line 223 of file CommitLog.h.
typedef std::shared_ptr<CommitLogReader> Hypertable::CommitLogReaderPtr |
Smart pointer to CommitLogReader.
Definition at line 112 of file CommitLogReader.h.
typedef std::shared_ptr<Definition> Hypertable::MetaLog::DefinitionPtr |
Smart pointer to Definition.
Definition at line 114 of file MetaLogDefinition.h.
typedef std::shared_ptr<Entity> Hypertable::MetaLog::EntityPtr |
Smart pointer to Entity.
Definition at line 169 of file MetaLogEntity.h.
typedef std::shared_ptr<Namespace> Hypertable::NamespacePtr |
Shared smart pointer to Namespace.
Definition at line 333 of file Namespace.h.
typedef std::map<String, RangeMetrics> Hypertable::Lib::RS_METRICS::RangeMetricsMap |
Definition at line 104 of file RangeMetrics.h.
typedef std::shared_ptr<RangeMoveSpec> Hypertable::RangeMoveSpecPtr |
Definition at line 101 of file RangeMoveSpec.h.
typedef std::shared_ptr<Reader> Hypertable::MetaLog::ReaderPtr |
Smart pointer to Reader.
Definition at line 213 of file MetaLogReader.h.
typedef std::shared_ptr<ScanBlock> Hypertable::ScanBlockPtr |
Smart pointer to ScanBlock.
Definition at line 130 of file ScanBlock.h.
typedef std::shared_ptr<Schema> Hypertable::SchemaPtr |
typedef std::shared_ptr<TableMutatorIntervalHandler> Hypertable::TableMutatorIntervalHandlerPtr |
Smart pointer to TableMutatorIntervalHandler.
Definition at line 127 of file TableMutatorIntervalHandler.h.
typedef std::shared_ptr<TableScannerAsync> Hypertable::TableScannerAsyncPtr |
Smart pointer to TableScannerAsync.
Definition at line 178 of file TableScannerAsync.h.
typedef std::shared_ptr<TableScanner> Hypertable::TableScannerPtr |
Smart pointer to TableScanner.
Definition at line 124 of file TableScanner.h.
typedef std::shared_ptr<Writer> Hypertable::MetaLog::WriterPtr |
Smart pointer to Writer.
Definition at line 280 of file MetaLogWriter.h.
anonymous enum |
Enumeration for isset bits.
Enumerator | |
---|---|
REPLICATION |
replication bit |
BLOCKSIZE |
blocksize bit |
COMPRESSOR |
compressor bit |
BLOOMFILTER |
bloom filter bit |
IN_MEMORY |
in memory bit |
MAX |
Total bit count. |
Definition at line 58 of file AccessGroupSpec.h.
anonymous enum |
Flag to signal constructor to generate cluster ID if not found.
Enumerator | |
---|---|
GENERATE_IF_NOT_FOUND |
Passed to constructor to tell it to generate cluster ID if not found. |
Definition at line 50 of file ClusterId.h.
anonymous enum |
Enumeration for isset bits.
Enumerator | |
---|---|
MAX_VERSIONS |
max versions bit |
TTL |
ttl bit |
TIME_ORDER_DESC |
time order desc bit |
COUNTER |
counter bit |
MAX |
Total bit count. |
Definition at line 44 of file ColumnFamilySpec.h.
anonymous enum |
Enumerator | |
---|---|
NO_OPERATION | |
EXACT_MATCH | |
PREFIX_MATCH | |
REGEX_MATCH | |
VALUE_MATCH | |
QUALIFIER_EXACT_MATCH | |
QUALIFIER_PREFIX_MATCH | |
QUALIFIER_REGEX_MATCH | |
QUALIFIER_MATCH |
Definition at line 42 of file ColumnPredicate.h.
anonymous enum |
anonymous enum |
Enumerator | |
---|---|
RECOVER |
Recover entity. |
Definition at line 189 of file MetaLogEntity.h.
anonymous enum |
Enumeration for entity header constants.
Enumerator | |
---|---|
FLAG_REMOVE |
Entity removal flag |
LENGTH |
Static length of entity header. |
Definition at line 59 of file MetaLogEntityHeader.h.
anonymous enum |
Definition at line 53 of file Protocol.h.
anonymous enum |
Enumerator | |
---|---|
UPDATE_FLAG_NO_LOG_SYNC | |
UPDATE_FLAG_NO_LOG |
Definition at line 99 of file Protocol.h.
anonymous enum |
Enumeration for describing parts of a table.
Enumerator | |
---|---|
PRIMARY |
Primary table. |
VALUE_INDEX |
Value index. |
QUALIFIER_INDEX |
Qualifier index |
ALL |
All parts. |
Definition at line 52 of file TableParts.h.
Enumeration for bloom filter modes.
Enumerator | |
---|---|
BLOOM_FILTER_DISABLED |
Disable. |
BLOOM_FILTER_ROWS |
Rows only. |
BLOOM_FILTER_ROWS_COLS |
Rows plus columns. |
Definition at line 44 of file AccessGroupSpec.h.
Enumeration for variable codes.
Enumerator | |
---|---|
READONLY |
Read-only. |
COUNT |
Valid code count. |
Definition at line 45 of file SystemVariable.h.
Enumeration for pseudo table column family codes.
Definition at line 49 of file PseudoTables.h.
Enumerator | |
---|---|
COMPACT_FLAG_ROOT | |
COMPACT_FLAG_METADATA | |
COMPACT_FLAG_SYSTEM | |
COMPACT_FLAG_USER | |
COMPACT_FLAG_ALL | |
COMPACT_FLAG_MINOR | |
COMPACT_FLAG_MAJOR | |
COMPACT_FLAG_MERGING | |
COMPACT_FLAG_GC |
Definition at line 106 of file Protocol.h.
Enumerator | |
---|---|
LOAD_ALL_ENTITIES |
Definition at line 60 of file MetaLogReader.h.
Master MetaLog entity type constants
Definition at line 42 of file MetaLogEntityTypes.h.
Enumerator | |
---|---|
GROUP_METADATA_ROOT | |
GROUP_METADATA | |
GROUP_SYSTEM | |
GROUP_USER |
Definition at line 91 of file Protocol.h.
RangeServer MetaLog entity type constants
Enumerator | |
---|---|
RANGE | |
RANGE2 | |
TASK_REMOVE_TRANSFER_LOG | |
TASK_ACKNOWLEDGE_RELINQUISH | |
REMOVE_OK_LOGS |
Definition at line 42 of file MetaLogEntityTypes.h.
Mixed enumeration for range state values and PHANTOM bit mask.
Definition at line 52 of file RangeState.h.
Enumerator | |
---|---|
ROOT | |
METADATA | |
SYSTEM | |
USER | |
UNKNOWN |
Definition at line 42 of file RangeSpec.h.
Enumeration for compression type.
Definition at line 51 of file BlockCompressionCodec.h.
Client::Client | ( | const std::string & | install_dir, |
const std::string & | config_file, | ||
uint32_t | default_timeout_ms = 0 |
||
) |
Constructs the object using the specified config file.
install_dir | path to Hypertable installation directory |
config_file | name of configuration file |
default_timeout_ms | default method call timeout in milliseconds |
Client::Client | ( | const std::string & | install_dir = String() , |
uint32_t | default_timeout_ms = 0 |
||
) |
Constructs the object using the default config file.
install_dir | path to Hypertable installation directory |
default_timeout_ms | default method call timeout in milliseconds |
void Hypertable::copy | ( | TableScanner & | scanner, |
CellsBuilder & | b | ||
) |
Definition at line 102 of file TableScanner.cc.
|
inline |
Definition at line 127 of file TableScanner.h.
HqlInterpreter * Client::create_hql_interpreter | ( | bool | immutable_namespace = true | ) |
void Client::create_namespace | ( | const std::string & | name, |
Namespace * | base = NULL , |
||
bool | create_intermediate = false , |
||
bool | if_not_exists = false |
||
) |
Creates a namespace.
name | name of the namespace to create |
base | optional base Namespace (if specified the name parameter will be relative to base) |
create_intermediate | if true then create all non-existent intermediate namespaces |
if_not_exists | don't throw an exception if namespace does exist |
void Client::drop_namespace | ( | const std::string & | name, |
Namespace * | base = NULL , |
||
bool | if_exists = false |
||
) |
Removes a namespace.
This command instructs the Master to remove a namespace from the system. The namespace must be empty, ie all tables and namespaces under it must have been dropped already
name | namespace name |
base | optional base Namespace (if specified the name parameter will be relative to base) |
if_exists | don't throw an exception if table does not exist |
bool Client::exists_namespace | ( | const std::string & | name, |
Namespace * | base = NULL |
||
) |
Hyperspace::SessionPtr & Client::get_hyperspace_session | ( | ) |
Lib::Master::ClientPtr Client::get_master_client | ( | ) |
NameIdMapperPtr Client::get_nameid_mapper | ( | ) |
NamespacePtr Client::open_namespace | ( | const std::string & | name, |
Namespace * | base = NULL |
||
) |
|
related |
|
related |
|
related |
|
related |
|
related |
std::ostream & Hypertable::operator<< | ( | std::ostream & | out, |
const RangeState & | st | ||
) |
ostream shift function for RangeState objects.
This method writes a human readable representation of a RangeState object to the given ostream as a single line, formatted as follows:
{RangeState: state=<s> timestamp=<t> ... }
out | ostream on which to print range state |
st | RangeState object to print |
out
Definition at line 144 of file RangeState.cc.
|
inline |
ostream shift function for Entity objects.
This method writes a human readable representation of an Entity to a given ostream. It prints the header followed by the entity state.
os | ostream on which to print entity |
entity | Entity object to print |
os
Definition at line 179 of file MetaLogEntity.h.
|
related |
|
related |
|
inline |
Equality operator for BlockHeaderCellStore type.
This method performs an equality comparison of lhs
and rhs
.
lhs
is logically equal to rhs
, false otherwise. Definition at line 108 of file BlockHeaderCellStore.h.
|
inline |
Equality operator for BlockHeaderCommitLog type.
This method performs an equality comparison of lhs
and rhs
.
lhs
is logically equal to rhs
, false otherwise. Definition at line 163 of file BlockHeaderCommitLog.h.
|
inline |
Equality operator for BlockHeader type.
This method performs an equality comparison of lhs
and rhs
.
lhs
is logically equal to rhs
, false otherwise. Definition at line 242 of file BlockHeader.h.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |