What is the best api/library for Java to use Cassandra? [closed]

给你一囗甜甜゛ 提交于 2019-12-21 08:23:17

问题


I'm looking for an API with the following requirements

  1. It's simple to use and is concise. It is not bloated.
  2. Works with Spring way of doing things, or is at least easy to make it work with Spring
  3. Has a Maven repository, preferably it's already in the main repositories
  4. Is production-tested, meaning a fair number of people are using it in production applications.

Help? Thanks!


回答1:


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.




回答2:


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.




回答3:


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



来源:https://stackoverflow.com/questions/3232842/what-is-the-best-api-library-for-java-to-use-cassandra

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!