Have a look at QuerySubmitter <https://github.com/hnfgns/incubator-drill/blob/master/exec/java-exec/src/main/java/org/apache/drill/exec/client/QuerySubmitter.java>. It does boilerplate for posting queries on top DrillClient. All remains is to attach a result listener to perform your custom logic.
-Hanifi On Mon, Jun 1, 2015 at 2:19 PM, Norris Lee <[email protected]> wrote: > Hi Nishith, > > As far as I know, I don't think there is any documentation on that. > Hopefully the function names are relatively self-explanatory. If not, feel > free to ask on this list for clarification. > > Norris > > -----Original Message----- > From: Nishith Maheshwari [mailto:[email protected]] > Sent: Monday, June 01, 2015 4:19 AM > To: [email protected] > Subject: Re: JAVA API for Drill > > Thanks Norris > > Is there any documentation regarding the usage of these libraries and > functions? As in which function does what. > > Regards, > Nishith > > On Wed, May 27, 2015 at 10:06 PM, Norris Lee <[email protected]> wrote: > > > Hi Nishith, > > > > Take a look at the DrillClient.java and .cpp/.hpp classes of the > > project for the Java and C++ libraries respectively. > > > > Norris > > > > -----Original Message----- > > From: Nishith Maheshwari [mailto:[email protected]] > > Sent: Wednesday, May 27, 2015 1:45 AM > > To: [email protected] > > Subject: Re: JAVA API for Drill > > > > Thank you Martin and Rajkumar for your prompt responses. > > > > I am actually looking if some API is available which provides this > > functionality. In the documentation it is mentioned in : > > https://drill.apache.org/docs/architecture-introduction - > > > > *You can connect to Apache Drill through the following interfaces:* > > > > - *Drill shell* > > - *Drill Web UI* > > - *ODBC > > < > > https://drill.apache.org/docs/odbc-jdbc-interfaces#using-odbc-to-acces > > s-apache-drill-from-bi-tools > > >** > > - *JDBC <https://drill.apache.org/docs/using-jdbc/>* > > - *C++ API* > > > > > > and in http://drill.apache.org/faq/ - > > *What clients are supported?* > > > > - *BI tools via the ODBC and JDBC drivers (eg, Tableau, Excel, > > MicroStrategy, Spotfire, QlikView, Business Objects)* > > - *Custom applications via the REST API* > > - *Java and C applications via the dedicated Java and C libraries* > > > > > > It would be great if you/somebody can point me to the C++ api or the > > dedicated JAVA library or API as mentioned in the documentation. > > > > Thanks and regards, > > Nishith Maheshwari > > > > > > > > On Wed, May 27, 2015 at 12:44 PM, Rajkumar Singh <[email protected]> > > wrote: > > > > > Do you try drill-jdbc driver? I will suggest you to use java jdbc > > > connectivity to query drill using the drill-jdbc driver.I have not > > > tried this to query HBASE using drill but it should work if you have > > > correctly configured the HBase Storage plugin with the DRILL. > > > > > > Thanks > > > > > > Rajkumar Singh > > > > > > > > > > > > > On May 27, 2015, at 12:09 PM, Nishith Maheshwari > > > > <[email protected]> > > > wrote: > > > > > > > > Hi, > > > > I wanted to create a java application to connect and query over a > > > > HBase database using Drill, but was unable to find any > > > > documentation regarding this. > > > > Is there a JAVA api through which Drill can be accessed? I did see > > > > a > > > small > > > > mention of C++ and JAVA api in the documentation but there was no > > > > other link or information regarding the same. > > > > > > > > Regards, > > > > Nishith Maheshwari > > > > > > > > >
