Represents a column predicate (e.g. More...
#include <ColumnPredicate.h>
Public Types | |
enum | { NO_OPERATION = 0, EXACT_MATCH = 0x0001, PREFIX_MATCH = 0x0002, REGEX_MATCH = 0x0004, VALUE_MATCH = 0x0007, QUALIFIER_EXACT_MATCH = 0x0100, QUALIFIER_PREFIX_MATCH = 0x0200, QUALIFIER_REGEX_MATCH = 0x0400, QUALIFIER_MATCH = 0x0700 } |
Public Member Functions | |
ColumnPredicate () | |
ColumnPredicate (const char *family, const char *qualifier, uint32_t op, const char *v, uint32_t vlen=0) | |
ColumnPredicate (const uint8_t **bufp, size_t *remainp) | |
virtual | ~ColumnPredicate () |
const string | render_hql () const |
Renders predicate as HQL. More... | |
Public Member Functions inherited from Hypertable::Serializable | |
virtual size_t | encoded_length () const |
Returns serialized object length. More... | |
virtual void | encode (uint8_t **bufp) const |
Writes serialized representation of object to a buffer. More... | |
virtual void | decode (const uint8_t **bufp, size_t *remainp) |
Reads serialized representation of object from a buffer. More... | |
Public Attributes | |
const char * | column_family {} |
const char * | column_qualifier {} |
const char * | value {} |
uint32_t | column_qualifier_len {} |
uint32_t | value_len {} |
uint32_t | operation {} |
Private Member Functions | |
uint8_t | encoding_version () const override |
Returns encoding version. More... | |
size_t | encoded_length_internal () const override |
Returns internal serialized length. More... | |
void | encode_internal (uint8_t **bufp) const override |
Writes serialized representation of object to a buffer. More... | |
void | decode_internal (uint8_t version, const uint8_t **bufp, size_t *remainp) override |
Reads serialized representation of object from a buffer. More... | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &os, const ColumnPredicate &cp) |
Additional Inherited Members |
Represents a column predicate (e.g.
WHERE cf = "value"). c-string data members are not managed so caller must handle (de)allocation.
Definition at line 40 of file ColumnPredicate.h.
|
inline |
Definition at line 54 of file ColumnPredicate.h.
|
inline |
Definition at line 56 of file ColumnPredicate.h.
|
inline |
Definition at line 66 of file ColumnPredicate.h.
|
inlinevirtual |
Definition at line 70 of file ColumnPredicate.h.
|
overrideprivatevirtual |
Reads serialized representation of object from a buffer.
version | Encoding version |
bufp | Address of destination buffer pointer (advanced by call) |
remainp | Address of integer holding amount of serialized object remaining |
Implements Hypertable::Serializable.
Definition at line 74 of file ColumnPredicate.cc.
|
overrideprivatevirtual |
Writes serialized representation of object to a buffer.
bufp | Address of destination buffer pointer (advanced by call) |
Encoding is as follows:
Encoding | Description |
---|---|
vstr | Column family |
vstr | Column qualifier |
vstr | Value |
i32 | Operation |
Implements Hypertable::Serializable.
Definition at line 67 of file ColumnPredicate.cc.
|
overrideprivatevirtual |
Returns internal serialized length.
Implements Hypertable::Serializable.
Definition at line 37 of file ColumnPredicate.cc.
|
overrideprivatevirtual |
Returns encoding version.
Implements Hypertable::Serializable.
Definition at line 33 of file ColumnPredicate.cc.
const string ColumnPredicate::render_hql | ( | ) | const |
Renders predicate as HQL.
Definition at line 83 of file ColumnPredicate.cc.
|
related |
Definition at line 124 of file ColumnPredicate.cc.
const char* Hypertable::Lib::ColumnPredicate::column_family {} |
Definition at line 76 of file ColumnPredicate.h.
const char* Hypertable::Lib::ColumnPredicate::column_qualifier {} |
Definition at line 77 of file ColumnPredicate.h.
uint32_t Hypertable::Lib::ColumnPredicate::column_qualifier_len {} |
Definition at line 79 of file ColumnPredicate.h.
uint32_t Hypertable::Lib::ColumnPredicate::operation {} |
Definition at line 81 of file ColumnPredicate.h.
const char* Hypertable::Lib::ColumnPredicate::value {} |
Definition at line 78 of file ColumnPredicate.h.
uint32_t Hypertable::Lib::ColumnPredicate::value_len {} |
Definition at line 80 of file ColumnPredicate.h.