calcite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Elser <>
Subject Re: Minimal Example of Avatica Server
Date Mon, 29 Feb 2016 15:05:56 GMT
Hi Yiannis,

Thanks for the kind words, and happy to see you here.

In general, you can construct your own server by doing the following:

JdbcMeta meta = new JdbcMeta(...); // Provide the correct JDBC url here
LocalService service = new LocalService(meta, ...); // Construct the 
service around JdbcMeta

// Construct a Jetty Handler for the HTTP Server
HandlerFactory factory = new HandlerFactory();
Handler handler = factory.getHandler(service, 

// Start the HTTP server with the provided service and handler
HttpServer server = new HttpServer(service, handler);

// Start the server

We could probably stand for more documentation here (and a clearer API 
statement). Would love to hear back how it works out for you. You could 
also take a look at the server in use by Phoenix[1].

- Josh


Yiannis Gkoufas wrote:
> Hi guys,
> first of all, congratulations for this lovely project!
> I was trying to understand how to develop a minimal JDBC server using
> Avatica and it wasn't very clear to me from the tests.
> I didn't want to use HSQLDB Factory as the example provided on the tests.
> I would really appreciate any pointers.
> Thanks!

View raw message