26#include "internal/geode_globals.hpp"
48class APACHE_GEODE_EXPORT
Query {
50 virtual ~Query()
noexcept =
default;
68 virtual std::shared_ptr<SelectResults>
execute(
69 std::chrono::milliseconds timeout = DEFAULT_QUERY_RESPONSE_TIMEOUT) = 0;
90 virtual std::shared_ptr<SelectResults>
execute(
91 std::shared_ptr<CacheableVector> paramList,
92 std::chrono::milliseconds timeout = DEFAULT_QUERY_RESPONSE_TIMEOUT) = 0;
A Query is obtained from a QueryService which in turn is obtained from the Cache.
Definition: Query.hpp:48
virtual void compile()=0
Compile the Query - client side query compilation is not supported.
virtual const std::string & getQueryString() const =0
Get the query string provided when a new Query was created from a QueryService.
virtual std::shared_ptr< SelectResults > execute(std::shared_ptr< CacheableVector > paramList, std::chrono::milliseconds timeout=DEFAULT_QUERY_RESPONSE_TIMEOUT)=0
Executes the parameterized OQL Query on the cache server and returns the results.
virtual bool isCompiled()=0
Check whether the Query is compiled - client side query compilation is not supported.
virtual std::shared_ptr< SelectResults > execute(std::chrono::milliseconds timeout=DEFAULT_QUERY_RESPONSE_TIMEOUT)=0
Executes the OQL Query on the cache server and returns the results.