VMware Tanzu GemFire Native C++ Reference
10.1.5
|
Go to the documentation of this file.
20 #ifndef GEODE_QUERYSERVICE_H_
21 #define GEODE_QUERYSERVICE_H_
26 #include "CqAttributes.hpp"
29 #include "ExceptionTypes.hpp"
31 #include "internal/geode_globals.hpp"
49 typedef std::vector<std::shared_ptr<CqQuery>> query_container_type;
57 virtual std::shared_ptr<Query>
newQuery(std::string querystr) = 0;
89 virtual std::shared_ptr<CqQuery>
newCq(
90 std::string name, std::string querystr,
91 const std::shared_ptr<CqAttributes>& cqAttr,
bool isDurable =
false) = 0;
125 virtual std::shared_ptr<CqQuery>
newCq(
126 std::string querystr,
const std::shared_ptr<CqAttributes>& cqAttr,
127 bool isDurable =
false) = 0;
140 virtual query_container_type
getCqs()
const = 0;
146 virtual std::shared_ptr<CqQuery>
getCq(
const std::string& name)
const = 0;
182 #endif // GEODE_QUERYSERVICE_H_
virtual std::shared_ptr< CqQuery > newCq(std::string name, std::string querystr, const std::shared_ptr< CqAttributes > &cqAttr, bool isDurable=false)=0
Constructs a new named continuous query, represented by an instance of CqQuery.
virtual void executeCqs()=0
@nativeclient Executes all the cqs on this client.
virtual std::shared_ptr< CacheableArrayList > getAllDurableCqsFromServer() const =0
Gets all the durable CQs registered by this client.
virtual std::shared_ptr< CqQuery > newCq(std::string querystr, const std::shared_ptr< CqAttributes > &cqAttr, bool isDurable=false)=0
@nativeclient Constructs a new named continuous query, represented by an instance of CqQuery.
virtual void stopCqs()=0
Stops all the cqs on this client.
QueryService is the class obtained from a Cache.
Definition: QueryService.hpp:47
virtual std::shared_ptr< Query > newQuery(std::string querystr)=0
Get a new Query with the specified query string.
virtual std::shared_ptr< CqServiceStatistics > getCqServiceStatistics() const =0
@nativeclient Get statistics information for all CQs
virtual query_container_type getCqs() const =0
@nativeclient Retrieve all registered CQs @endnativeclient
virtual void closeCqs()=0
Close all CQs, and release resources associated with executing CQs.
virtual std::shared_ptr< CqQuery > getCq(const std::string &name) const =0
Retrieve a CqQuery by name.
Apache Geode C++ Cache API Documentation