76 HT_TRY(
"decoding column predicate",
86 hql.reserve(strlen(column_family) + column_qualifier_len + value_len + 16);
88 hql.append(
"Exists(");
89 hql.append(column_family);
90 if (column_qualifier_len) {
93 hql.append(column_qualifier);
95 hql.append(column_qualifier);
100 hql.append(column_qualifier);
112 hql.append(
" =^ \"");
116 if (operation & ColumnPredicate::REGEX_MATCH)
125 os <<
"{ColumnPredicate";
132 os <<
" operation=" << cp.
operation <<
"}";
char * decode_vstr(const uint8_t **bufp, size_t *remainp)
Decode a vstr (vint64, data, null).
void encode_internal(uint8_t **bufp) const override
Writes serialized representation of object to a buffer.
const string render_hql() const
Renders predicate as HQL.
const char * column_family
size_t encoded_length_vstr(size_t len)
Computes the encoded length of vstr (vint64, data, null)
uint32_t decode_i32(const uint8_t **bufp, size_t *remainp)
Decode a 32-bit integer in little-endian order.
ostream & operator<<(ostream &os, const CellInterval &ci)
Logging routines and macros.
void encode_i32(uint8_t **bufp, uint32_t val)
Encode a 32-bit integer in little-endian order.
Compatibility Macros for C/C++.
Functions to serialize/deserialize primitives to/from a memory buffer.
Represents a column predicate (e.g.
void decode_internal(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Reads serialized representation of object from a buffer.
void encode_vstr(uint8_t **bufp, const void *buf, size_t len)
Encode a buffer as variable length string (vint64, data, null)
uint8_t encoding_version() const override
Returns encoding version.
const char * column_qualifier
size_t encoded_length_internal() const override
Returns internal serialized length.
uint32_t column_qualifier_len
#define HT_TRY(_s_, _code_)