athena icon indicating copy to clipboard operation
athena copied to clipboard

There should be a simple example

Open tupshin opened this issue 11 years ago • 1 comments

a simple example exhibiting best practices of how to connect to a cluster and exhibit a simple query would be quite useful.

tupshin avatar Apr 26 '14 03:04 tupshin

I'm actually still trying to figure this out myself - there's the Session interface which is a high level wrapper around a cluster, there's the raw Cluster actor and I'm also planning on a yet-to-be-implemented Java friendly API that exposes common calls that return Guava ListenableFuture instances.

For now, the best way to connect is to just instantiate a Session with an implicit ActorRefFactory. After we get some of the API cleaned up a bit more, I'm planning on adding a section to the README with a simple how to.

dpratt avatar Apr 26 '14 03:04 dpratt