27 #ifndef Hypertable_Lib_AccessGroupSpec_h
28 #define Hypertable_Lib_AccessGroupSpec_h
35 #include <unordered_map>
208 void parse_xml(
const char *base,
int len);
230 const std::string
render_xml(
const std::string &line_prefix)
const;
337 void set_name(
const std::string &name);
534 void parse_xml(
const char *base,
int len);
589 const std::string
render_xml(
const std::string &line_prefix,
590 bool with_ids=
false)
const;
642 #endif // Hypertable_Lib_AccessGroup_h
std::string m_bloomfilter
Bloom filter specification.
int32_t m_blocksize
Block size.
void set_default_max_versions(int32_t max_versions)
Sets default max versions column family option.
void set_name(const std::string &name)
Sets access group name.
int32_t get_blocksize() const
Gets blocksize option.
bool is_set_bloom_filter() const
Checks if bloom filter option is set.
void set_default_ttl(time_t ttl)
Sets default ttl column family option.
void set_bloom_filter(const std::string &bloomfilter)
Sets bloom filter option.
bool get_default_time_order_desc() const
Gets default time order desc column family option.
std::vector< AccessGroupSpec * > AccessGroupSpecs
Vector of AccessGroupSpec pointers.
const ColumnFamilyOptions & defaults() const
Returns reference to column family defaults structure.
void set_default_counter(bool value)
Sets default counter column family option.
void parse_xml(const char *base, int len)
Parses XML options specification.
void set_option_bloom_filter(const std::string &bloomfilter)
Sets bloom filter option.
ColumnFamilySpec * get_column(const std::string &name)
Gets column family specification.
void set_replication(int16_t replication)
Sets replication option.
Program options handling.
void set_option_compressor(const std::string &compressor)
Sets compressor option.
Column family specification.
static void parse_bloom_filter(const std::string &spec, PropertiesPtr &props)
Parsers a bloom filter specification and sets properties.
bool is_set_in_memory() const
Checks if in memory option is set.
int16_t m_replication
Replication.
ColumnFamilyOptions m_defaults
Column family defaults.
void clear_generation()
Clears generation.
Specification for column family options.
bool clear_generation_if_changed(AccessGroupSpec &original)
Clears generation if different than original.
void set_generation(int64_t generation)
Sets generation.
bool get_default_counter() const
Gets default counter column family option.
AccessGroupOptions m_options
Options.
Specification for access group options.
int16_t get_option_replication() const
Gets replication option.
bool is_set_replication() const
Checks if replication option is set.
const std::string render_xml(const std::string &line_prefix, bool with_ids=false) const
Renders access group specification in XML format.
AccessGroupSpec(const std::string &name)
Constructor with name initializer.
void clear_columns()
Clears columns.
const AccessGroupOptions & options() const
Returns reference to options structure.
bool m_in_memory
In memory.
bool operator==(const AccessGroupSpec &other) const
Equality operator.
void parse_xml(const char *base, int len)
Parses XML access group specification.
int64_t m_generation
Generation.
std::bitset< MAX > m_isset
Bit mask describing which options are set.
ColumnFamilySpec * remove_column(const std::string &name)
Removes column family specification.
~AccessGroupSpec()
Destructor.
int64_t get_generation() const
Gets generation.
bool get_option_in_memory() const
Gets in memory option.
const std::string & get_name() const
Gets access group name.
const std::string render_xml(const std::string &line_prefix) const
Renders options in XML format.
bool get_in_memory() const
Gets in memory option.
std::shared_ptr< Properties > PropertiesPtr
void merge_options(const AccessGroupOptions &options)
Merges options with those from another AccessGroupOptions object.
BloomFilterMode
Enumeration for bloom filter modes.
void drop_column(const std::string &name)
Drops column family.
bool is_set_compressor() const
Checks if compressor option is set.
void merge(const ColumnFamilyOptions &other)
Merges options from another ColumnFamilyOptions object.
const std::string render_hql() const
Renders options in HQL format.
Access group specification.
int32_t get_option_blocksize() const
Gets blocksize option.
int16_t get_replication() const
Gets replication option.
void merge_defaults(const ColumnFamilyOptions &options)
Merges column family defaults with those from another AccessGroupOptions object.
ColumnFamilySpecs m_columns
Member column family specifications.
int32_t get_default_max_versions() const
Gets default max versions column family option.
bool operator==(const AccessGroupOptions &other) const
Equality operator.
time_t get_default_ttl() const
Gets default ttl column family option.
ColumnFamilySpecs & columns()
Returns reference to column specifications.
void set_option_in_memory(bool value)
Sets in memory option.
void set_blocksize(int32_t blocksize)
Sets blocksize option.
const std::string & get_option_bloom_filter() const
Gets bloom filter option.
AccessGroupSpec()
Default constructor.
void set_in_memory(bool value)
Sets in memory option.
bool is_set_blocksize() const
Checks if blocksize option is set.
std::string m_compressor
Compressor specification.
std::vector< ColumnFamilySpec * > ColumnFamilySpecs
Vector of ColumnFamilySpec pointers.
void set_compressor(const std::string &compressor)
Sets compressor option.
void set_default_time_order_desc(bool value)
Sets default time order desc column family option.
ColumnFamilySpec * replace_column(ColumnFamilySpec *new_cf)
Replaces column family specification.
void set_option_replication(int16_t replication)
Sets replication option.
void add_column(ColumnFamilySpec *cf)
Adds column family specification.
const std::string get_option_compressor() const
Gets compressor option.
const std::string & get_compressor() const
Gets compressor option.
Declarations for ColumnFamilySpec.
void merge(const AccessGroupOptions &other)
Merges options from another AccessGroupOptions object.
const std::string & get_bloom_filter() const
Gets bloom filter option.
void set_option_blocksize(int32_t blocksize)
Sets blocksize option.
const std::string render_hql() const
Renders access group specification in HQL format.