aboutsummaryrefslogtreecommitdiff
path: root/contrib/native/client/src/include
diff options
context:
space:
mode:
authorParth Chandra <pchandra@maprtech.com>2015-01-08 09:52:30 -0800
committerParth Chandra <pchandra@maprtech.com>2015-01-09 14:28:15 -0800
commitf8206497331e66902fc8779b3e431472a36a2e8b (patch)
treea48dac4c77a375ae3fbcafadc0f2f59c97388d60 /contrib/native/client/src/include
parent7638dbb82606c9644d6ad02210fbfd5d8f6ae090 (diff)
DRILL-1955: C++ client should provide a clean method for detecting query completion in the async API.
Diffstat (limited to 'contrib/native/client/src/include')
-rw-r--r--contrib/native/client/src/include/drill/drillClient.hpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/contrib/native/client/src/include/drill/drillClient.hpp b/contrib/native/client/src/include/drill/drillClient.hpp
index 490c823d5..0204855b2 100644
--- a/contrib/native/client/src/include/drill/drillClient.hpp
+++ b/contrib/native/client/src/include/drill/drillClient.hpp
@@ -191,6 +191,17 @@ class DECLSPEC_DRILL_CLIENT RecordIterator{
class DECLSPEC_DRILL_CLIENT DrillClient{
public:
+ /*
+ * Get the application context from query handle
+ */
+ static void* getApplicationContext(QueryHandle_t handle);
+
+ /*
+ * Get the query status from query handle
+ */
+ static status_t getQueryStatus(QueryHandle_t handle);
+
+
DrillClient();
~DrillClient();
@@ -238,10 +249,6 @@ class DECLSPEC_DRILL_CLIENT DrillClient{
* back. The listener callback will return the handle in the ctx parameter.
*/
status_t submitQuery(Drill::QueryType t, const std::string& plan, pfnQueryResultsListener listener, void* listenerCtx, QueryHandle_t* qHandle);
- /*
- * Get the application context from query handle
- */
- static void* getApplicationContext(QueryHandle_t handle);
/*
* Submit a query asynchronously and wait for results to be returned through an iterator that returns