What is the best api/library for Java to use Cassandra? [closed]
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this questionI'm looking for an API with the following requirements
- It's simple to use and is concise. It is not bloated.
- Works with Spring way of doing things, or is at least easy to make it work with Spring
- Has a Maven repository, preferably it's already in the main repositories
- Is production-tested, meaning a fair number of people are using it in production applications.
Help? Thanks!
Hector and Pelops are, as far as I know, the two that are most widely used (4). I dont think any of the two are mavenized (3). Both should work in a Spring framework environment(2). Your first criteria might be a little bit subjective. I dont find any of these two bloated. You might do, if you do, please tell me.
i know this is an old question but I'd like to point future viewer of the question to Astyanax. It's a very well documented Cassandra API with many examples and support very high level features such as locking and all versions of cql. Astyanax is also Mavenized.
Kundera is a object-datastore mapping tool for Cassandra, Hbase and MongoDB.
Some of the salient features are:
- JPA 2.0 compliant.
- Column/ super column indexing using lucene.
- Support for entity relationships and JPA queries.
- Cross-datastore persistence
It's hosted here: https://github.com/impetus-opensource/Kundera
精彩评论