17 #include "hazelcast/client/query/predicates.h"
18 #include "hazelcast/client/spi/ClientContext.h"
23 const char *
const query_constants::KEY_ATTRIBUTE_NAME =
"__key";
24 const char *
const query_constants::THIS_ATTRIBUTE_NAME =
"this";
26 base_predicate::base_predicate(hazelcast_client &client) : out_stream(spi::ClientContext(
27 client).get_serialization_service().new_output_stream()) {}
29 named_predicate::named_predicate(hazelcast_client &client,
const std::string &attribute_name) : base_predicate(
31 out_stream.write(attribute_name);
34 instance_of_predicate::instance_of_predicate(
hazelcast_client &client,
const std::string &java_class_name)
36 out_stream.write(java_class_name);
41 out_stream.write(sql);
46 out_stream.write(expression);
51 out_stream.write(expression);
56 out_stream.write(expression);
61 false_predicate::false_predicate(
hazelcast_client &client) : base_predicate(client) {}
ilike_predicate(hazelcast_client &client, const std::string &attribute, const std::string &expression)
like_predicate(hazelcast_client &client, const std::string &attribute, const std::string &expression)
regex_predicate(hazelcast_client &client, const std::string &attribute, const std::string &expression)
sql_predicate(hazelcast_client &client, const std::string &sql)