33 #include "hazelcast/client/query/predicates.h"
34 #include "hazelcast/client/spi/ClientContext.h"
39 constexpr
const char *query_constants::KEY_ATTRIBUTE_NAME;
40 constexpr
const char *query_constants::THIS_ATTRIBUTE_NAME;
42 base_predicate::base_predicate(hazelcast_client &client) : out_stream(spi::ClientContext(
43 client).get_serialization_service().new_output_stream()) {}
45 named_predicate::named_predicate(hazelcast_client &client,
const std::string &attribute_name) : base_predicate(
47 out_stream.write(attribute_name);
50 instance_of_predicate::instance_of_predicate(
hazelcast_client &client,
const std::string &java_class_name)
52 out_stream.write(java_class_name);
57 out_stream.write(sql);
62 out_stream.write(expression);
67 out_stream.write(expression);
72 out_stream.write(expression);
77 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)