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)
27 : out_stream(spi::ClientContext(client)
28 .get_serialization_service()
32 named_predicate::named_predicate(hazelcast_client& client,
33 const std::string& attribute_name)
34 : base_predicate(client)
36 out_stream.write(attribute_name);
40 const std::string& java_class_name)
43 out_stream.write(java_class_name);
49 out_stream.write(sql);
53 const std::string& attribute,
54 const std::string& expression)
57 out_stream.write(expression);
61 const std::string& attribute,
62 const std::string& expression)
65 out_stream.write(expression);
69 const std::string& attribute,
70 const std::string& expression)
73 out_stream.write(expression);
81 : 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)