Pivotal GemFire Native Client Cache Reference  9.0.6
CqQuery.hpp
Go to the documentation of this file.
1 #ifndef __GEMFIRE_CQ_QUERY_H__
2 #define __GEMFIRE_CQ_QUERY_H__
3 /*=========================================================================
4  * Copyright (c) 2002-2014 Pivotal Software, Inc. All Rights Reserved.
5  * This product is protected by U.S. and international copyright
6  * and intellectual property laws. Pivotal products are covered by
7  * more patents listed at http://www.pivotal.io/patents.
8  *========================================================================
9  */
10 
11 #include "gfcpp_globals.hpp"
12 #include "gf_types.hpp"
13 
14 #include "CqResults.hpp"
15 #include "CqStatistics.hpp"
16 #include "CqAttributes.hpp"
17 #include "CqAttributesMutator.hpp"
18 #include "CqState.hpp"
19 
24 namespace gemfire
25 {
26 
40 {
41 
42 public:
43 
48  virtual const char * getQueryString() const = 0;
53  virtual QueryPtr getQuery() const = 0;
58  virtual const char* getName() const = 0;
63  virtual const CqStatisticsPtr getStatistics() const = 0;
68  virtual const CqAttributesPtr getCqAttributes() const = 0;
73  virtual const CqAttributesMutatorPtr getCqAttributesMutator() const = 0;
92  virtual CqResultsPtr executeWithInitialResults(
93  uint32_t timeout = DEFAULT_QUERY_RESPONSE_TIMEOUT) = 0;
94 
110  virtual void execute() = 0;
119  virtual void stop() = 0;
120 
127  virtual CqState::StateType getState() = 0;
128 
136  virtual void close() = 0;
137 
142  virtual bool isRunning() = 0;
143 
148  virtual bool isStopped() = 0;
149 
154  virtual bool isClosed() = 0;
155 
161  virtual bool isDurable() = 0;
162 };
163 
164 } //namespace gemfire
165 
166 #endif //ifndef __GEMFIRE_CQ_QUERY_H__
#define DEFAULT_QUERY_RESPONSE_TIMEOUT
default timeout for query response
Definition: gf_base.hpp:214
This namespace contains all the GemFire C++ API classes, enumerations and globals.
Definition: Assert.hpp:19
#define CPPCACHE_EXPORT
Defines a GemFire CPPCACHE export.
Definition: gf_base.hpp:51
This abstract base class is the base class of all user objects that have the shared capability of ref...
Definition: SharedBase.hpp:31
A Query is obtained from a QueryService which in turn is obtained from the Cache. ...
Definition: CqQuery.hpp:39
Defines a reference counted shared pointer.
Definition: SharedPtr.hpp:35

GemFire C++ Cache API Documentation