17#include "hazelcast/client/query/predicates.h"
18#include "hazelcast/client/spi/ClientContext.h"
23const char*
const query_constants::KEY_ATTRIBUTE_NAME =
"__key";
24const char*
const query_constants::THIS_ATTRIBUTE_NAME =
"this";
26base_predicate::base_predicate(hazelcast_client& client)
27 : out_stream(spi::ClientContext(client)
28 .get_serialization_service()
32named_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)
41 : base_predicate(client)
43 out_stream.write(java_class_name);
47 : base_predicate(client)
49 out_stream.write(sql);
53 const std::string& attribute,
54 const std::string& expression)
55 : named_predicate(client, attribute)
57 out_stream.write(expression);
61 const std::string& attribute,
62 const std::string& expression)
63 : named_predicate(client, attribute)
65 out_stream.write(expression);
69 const std::string& attribute,
70 const std::string& expression)
71 : named_predicate(client, attribute)
73 out_stream.write(expression);
81 : base_predicate(client)
ilike_predicate(hazelcast_client &client, const std::string &attribute, const std::string &expression)
instance_of_predicate(hazelcast_client &client, const std::string &java_class_name)
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)