Hector - a Java Cassandra client

2010-02-23 Thread Ran Tavory
I've written a java library for cassandra I've been using internally, would
love to get your feedback and hope you find it useful.
Blog post: http://prettyprint.me/2010/02/23/hector-a-java-cassandra-client/
Source: http://github.com/rantav/hector

High level features:
 o A high-level object oriented interface to cassandra. In short: just some
nicities around thrift.
 o Failover support. If a client is connected to one host in the ring and
this host goes down, the client will automatically and transparently search
for other available hosts to perform the operation before giving up. You may
choose to FAIL_FAST (no retry, just fail if there are errors, nothing
smart), ON_FAIL_TRY_ONE_NEXT_AVAILABLE (try one more host before giving up)
or ON_FAIL_TRY_ALL_AVAILABLE (try all available hosts before giving up).
 o Connection pooling. Needless to say, it's a must.
 o JMX support. Hector exposes JMX for many runtime metrics, such as number
of available connections, idle connections, error statistics etc.
 o Support for the Command design pattern to allow clients to concentrate on
their business logic and let hector take care of the required plumbing.


Re: Hector - a Java Cassandra client

2010-02-23 Thread Richard Grossman
Hi Ran,

Is it support operation on super column ?
Thanks

On Tue, Feb 23, 2010 at 4:13 PM, Ran Tavory ran...@gmail.com wrote:

 I've written a java library for cassandra I've been using internally, would
 love to get your feedback and hope you find it useful.
 Blog post:
 http://prettyprint.me/2010/02/23/hector-a-java-cassandra-client/
 Source: http://github.com/rantav/hector

 High level features:
  o A high-level object oriented interface to cassandra. In short: just some
 nicities around thrift.
  o Failover support. If a client is connected to one host in the ring and
 this host goes down, the client will automatically and transparently search
 for other available hosts to perform the operation before giving up. You may
 choose to FAIL_FAST (no retry, just fail if there are errors, nothing
 smart), ON_FAIL_TRY_ONE_NEXT_AVAILABLE (try one more host before giving up)
 or ON_FAIL_TRY_ALL_AVAILABLE (try all available hosts before giving up).
  o Connection pooling. Needless to say, it's a must.
  o JMX support. Hector exposes JMX for many runtime metrics, such as number
 of available connections, idle connections, error statistics etc.
  o Support for the Command design pattern to allow clients to concentrate
 on their business logic and let hector take care of the required plumbing.



Re: Hector - a Java Cassandra client

2010-02-23 Thread Ran Tavory
it supports supercolumns, yes although I personally have only used regular
columns so far (you can see the unit tests here
http://github.com/rantav/hector/blob/master/src/test/java/me/prettyprint/cassandra/service/KeyspaceTest.java,
search for super)

On Tue, Feb 23, 2010 at 4:25 PM, Richard Grossman rich...@bee.tv wrote:

 Hi Ran,

 Is it support operation on super column ?
 Thanks

 On Tue, Feb 23, 2010 at 4:13 PM, Ran Tavory ran...@gmail.com wrote:

 I've written a java library for cassandra I've been using internally,
 would love to get your feedback and hope you find it useful.
 Blog post:
 http://prettyprint.me/2010/02/23/hector-a-java-cassandra-client/
 Source: http://github.com/rantav/hector

 High level features:
  o A high-level object oriented interface to cassandra. In short: just
 some nicities around thrift.
  o Failover support. If a client is connected to one host in the ring and
 this host goes down, the client will automatically and transparently search
 for other available hosts to perform the operation before giving up. You may
 choose to FAIL_FAST (no retry, just fail if there are errors, nothing
 smart), ON_FAIL_TRY_ONE_NEXT_AVAILABLE (try one more host before giving up)
 or ON_FAIL_TRY_ALL_AVAILABLE (try all available hosts before giving up).
  o Connection pooling. Needless to say, it's a must.
  o JMX support. Hector exposes JMX for many runtime metrics, such as
 number of available connections, idle connections, error statistics etc.
  o Support for the Command design pattern to allow clients to concentrate
 on their business logic and let hector take care of the required plumbing.