22 #ifndef Hypertable_Lib_ColumnPredicate_h
23 #define Hypertable_Lib_ColumnPredicate_h
45 PREFIX_MATCH = 0x0002,
48 QUALIFIER_EXACT_MATCH = 0x0100,
49 QUALIFIER_PREFIX_MATCH = 0x0200,
50 QUALIFIER_REGEX_MATCH = 0x0400,
51 QUALIFIER_MATCH = 0x0700
57 uint32_t op,
const char *v, uint32_t vlen=0)
58 : column_family(family), column_qualifier(qualifier),
59 value(v), value_len(vlen), operation(op) {
61 value_len = strlen(value);
62 column_qualifier_len =
63 column_qualifier ? strlen(column_qualifier) : 0;
67 decode(bufp, remainp);
74 const string render_hql()
const;
76 const char *column_family {};
77 const char *column_qualifier {};
79 uint32_t column_qualifier_len {};
80 uint32_t value_len {};
81 uint32_t operation {};
87 uint8_t encoding_version()
const override;
92 size_t encoded_length_internal()
const override;
96 void encode_internal(uint8_t **bufp)
const override;
104 void decode_internal(uint8_t version,
const uint8_t **bufp,
105 size_t *remainp)
override;
115 #endif // Hypertable_Lib_ColumnPredicate_h
ColumnPredicate(const uint8_t **bufp, size_t *remainp)
ostream & operator<<(ostream &os, const CellInterval &ci)
Represents a column predicate (e.g.
Declarations for Serializable.
Mixin class that provides a standard serialization interface.
ColumnPredicate(const char *family, const char *qualifier, uint32_t op, const char *v, uint32_t vlen=0)
virtual ~ColumnPredicate()