VMware GemFire Native C++ Reference  9.1
CqQuery.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef GEODE_CQQUERY_H_
4 #define GEODE_CQQUERY_H_
5 
6 /*
7  * Licensed to the Apache Software Foundation (ASF) under one or more
8  * contributor license agreements. See the NOTICE file distributed with
9  * this work for additional information regarding copyright ownership.
10  * The ASF licenses this file to You under the Apache License, Version 2.0
11  * (the "License"); you may not use this file except in compliance with
12  * the License. You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  */
22 
23 #include "geode_globals.hpp"
24 #include "geode_types.hpp"
25 
26 #include "CqResults.hpp"
27 #include "CqStatistics.hpp"
28 #include "CqAttributes.hpp"
29 #include "CqAttributesMutator.hpp"
30 #include "CqState.hpp"
31 
36 namespace apache {
37 namespace geode {
38 namespace client {
39 
54  public:
60  virtual const char* getQueryString() const = 0;
65  virtual QueryPtr getQuery() const = 0;
70  virtual const char* getName() const = 0;
75  virtual const CqStatisticsPtr getStatistics() const = 0;
80  virtual const CqAttributesPtr getCqAttributes() const = 0;
85  virtual const CqAttributesMutatorPtr getCqAttributesMutator() const = 0;
107  virtual CqResultsPtr executeWithInitialResults(
108  uint32_t timeout = DEFAULT_QUERY_RESPONSE_TIMEOUT) = 0;
109 
127  virtual void execute() = 0;
136  virtual void stop() = 0;
137 
144  virtual CqState::StateType getState() = 0;
145 
153  virtual void close() = 0;
154 
159  virtual bool isRunning() = 0;
160 
165  virtual bool isStopped() = 0;
166 
171  virtual bool isClosed() = 0;
172 
178  virtual bool isDurable() = 0;
179 };
180 } // namespace client
181 } // namespace geode
182 } // namespace apache
183 
184 #endif // GEODE_CQQUERY_H_
Each enum represents a predefined RegionAttributes in a Cache.
Definition: Assert.hpp:31
#define CPPCACHE_EXPORT
Defines a Geode CPPCACHE export.
Definition: geode_base.hpp:58
Defines a reference counted shared pointer.
Definition: SharedPtr.hpp:52
A Query is obtained from a QueryService which in turn is obtained from the Cache. ...
Definition: CqQuery.hpp:53
This abstract base class is the base class of all user objects that have the shared capability of ref...
Definition: SharedBase.hpp:40
#define DEFAULT_QUERY_RESPONSE_TIMEOUT
default timeout for query response
Definition: geode_base.hpp:176
This namespace contains all the Geode C++ API classes, enumerations and globals.

Pivotal GemFire C++ Cache API Documentation