VMware Tanzu GemFire Native C++ Reference
10.1.5
|
Go to the documentation of this file.
20 #ifndef GEODE_CQQUERY_H_
21 #define GEODE_CQQUERY_H_
25 #include "CqAttributes.hpp"
30 #include "internal/geode_globals.hpp"
67 virtual std::shared_ptr<Query>
getQuery()
const = 0;
73 virtual const std::string&
getName()
const = 0;
113 std::chrono::milliseconds timeout = DEFAULT_QUERY_RESPONSE_TIMEOUT) = 0;
188 #endif // GEODE_CQQUERY_H_
virtual bool isRunning() const =0
This allows to check if the CQ is in running or active.
This interface is used to modify the listeners that are associated with a CQ.
Definition: CqAttributesMutator.hpp:43
virtual std::shared_ptr< CqResults > executeWithInitialResults(std::chrono::milliseconds timeout=DEFAULT_QUERY_RESPONSE_TIMEOUT)=0
Start executing the CQ or if this CQ is stopped earlier, resumes execution of the CQ.
virtual CqState getState()=0
Get the state of the CQ in CqState object form.
virtual const std::string & getName() const =0
Get the name of the CQ.
This interface gives information on the state of a CqQuery.
virtual const std::string & getQueryString() const =0
Get the query string provided when a new Query was created from a QueryService.
virtual void close()=0
Close the CQ and stop execution.
virtual std::shared_ptr< CqAttributes > getCqAttributes() const =0
Get the Attributes of this CQ.
virtual bool isStopped() const =0
This allows to check if the CQ is in stopped.
virtual std::shared_ptr< Query > getQuery() const =0
Get teh query object generated for this CQs query.
virtual std::shared_ptr< CqStatistics > getStatistics() const =0
Get the statistics information of this CQ.
virtual bool isClosed() const =0
This allows to check if the CQ is closed.
virtual void stop()=0
Stops this CqQuery without releasing resources.
virtual CqAttributesMutator getCqAttributesMutator() const =0
Get the AttributesMutator of this CQ.
virtual bool isDurable() const =0
This allows to check if the CQ is durable.
A Query is obtained from a QueryService which in turn is obtained from the Cache.
Definition: CqQuery.hpp:54
virtual void execute()=0
Executes the OQL Query on the cache server and returns the results.
Apache Geode C++ Cache API Documentation