27 #ifndef Hypertable_Lib_ColumnFamilySpec_h
28 #define Hypertable_Lib_ColumnFamilySpec_h
31 #include <unordered_map>
166 void parse_xml(
const char *base,
int len);
186 const std::string
render_xml(
const std::string &line_prefix)
const;
239 void set_name(
const std::string &name);
382 const std::string
render_xml(
const std::string &line_prefix,
383 bool with_ids=
false)
const;
397 void parse_xml(
const char *base,
int len);
448 #endif // Hypertable_Lib_ColumnFamily_h
bool get_counter() const
Gets the counter option.
void set_id(int32_t id)
Sets column ID.
bool is_set_max_versions() const
Checks if max versions option is set.
const ColumnFamilyOptions & options() const
Returns reference to options structure.
bool get_time_order_desc() const
Gets time order desc option.
bool is_set_ttl() const
Checks if ttl option is set.
const std::string render_xml(const std::string &line_prefix, bool with_ids=false) const
Renders spec in XML format.
void parse_xml(const char *base, int len)
Parses XML options document.
std::string m_ag
Access group name.
ColumnFamilyOptions m_options
Options.
void set_option_max_versions(int32_t max_versions)
Sets max versions option.
void set_generation(int64_t generation)
Sets generation.
bool set_max_versions(int32_t max_versions)
Sets max versions option.
bool get_option_counter() const
Gets the counter option.
ColumnFamilySpec()
Default constructor.
bool m_value_index
Value index flag.
void set_deleted(bool value)
Sets deleted flag.
bool get_option_time_order_desc() const
Gets time order desc option.
time_t get_option_ttl() const
Gets ttl option.
const std::string render_hql() const
Renders options in HQL format.
bool get_value_index() const
Gets value index flag.
Column family specification.
int32_t m_max_versions
Max version.
void set_qualifier_index(bool value)
Sets qualifier index flag.
void set_name(const std::string &name)
Sets column family name.
const std::string render_hql() const
Renders spec in HQL format.
bool set_ttl(time_t ttl)
Sets ttl option.
Specification for column family options.
void set_option_time_order_desc(bool value)
Sets time order desc option.
bool m_qualifier_index
Qualifier index flag
bool is_set_counter() const
Checks if counter option is set.
void set_value_index(bool value)
Sets value index flag.
bool m_deleted
Deleted flag.
bool operator==(const ColumnFamilySpec &other) const
Equality operator.
void merge_options(const ColumnFamilyOptions &other)
Merges options from another ColumnFamilyOptions object.
bool get_qualifier_index() const
Gets qualifier index flag.
void parse_xml(const char *base, int len)
Parses XML options document.
const std::string & get_access_group() const
Gets access group name.
bool set_time_order_desc(bool value)
Sets time order desc option.
int32_t get_id() const
Gets column ID.
std::string m_name
Column family name
int32_t get_max_versions() const
Gets max versions option.
bool set_counter(bool value)
Sets counter option.
void set_option_counter(bool value)
Sets counter option.
bool is_set_time_order_desc() const
Checks if time_order_desc option is set.
void merge(const ColumnFamilyOptions &other)
Merges options from another ColumnFamilyOptions object.
time_t get_ttl() const
Gets ttl option.
void set_option_ttl(time_t ttl)
Sets ttl option.
const std::string & get_name() const
Gets column family name.
int32_t get_option_max_versions() const
Gets max versions option.
std::bitset< MAX > m_isset
Bit mask describing which options are set.
void set_access_group(const std::string &ag)
Sets access group.
bool get_deleted() const
Gets deleted flag.
ColumnFamilySpec(const std::string &name)
Constructor with column family name initializer.
const std::string render_xml(const std::string &line_prefix) const
Renders options in XML format.
int64_t get_generation() const
Gets generation.
int64_t m_generation
Generation.
std::vector< ColumnFamilySpec * > ColumnFamilySpecs
Vector of ColumnFamilySpec pointers.
bool operator==(const ColumnFamilyOptions &other) const
Equality operator.
bool m_time_order_desc
Time order "desc" flag.