Skip to content
8forty edited this page Jul 30, 2013 · 22 revisions

Astyanax is a Java Cassandra client library. Astyanax was the son of Hector in Greek mythology. As such, Astyanax is a refactoring of Hector into a cleaner abstraction for the connection manager and a simpler API.

Please subscribe to this mailing list for any Astyanax related discussions, Mailing List

Getting Started

See the page for quick start Getting-Started

FAQ

Please see the FAQ page

Recipes

Astyanax implements a set of common cassandra use cases as recipes.

Distributed-Row-Lock Lock semantics on a single row within a column family.
Uniqueness-Constraint Similar to Distributed-Row-Lock except for that the lock has no TTL and can be used to check whether a row already exists.
Multi-Row-Uniqueness-Constraint Extension of Uniqueness-Constraint across multiple column families which checkes whether an entire set of rows is unique.
Chunked-Object-Store Optimizes chunking and parallel upload and download of large files. Reduces heap pressure caused by storing very large objects that are accessed with high concurrency.
Reverse-Index-Search
All-Rows-Query Iterate through all rows in a single column family by properly parallelizing and paginating.
Message-Queue Experimental message queue. The queue supports triggers for recurring events.

Examples

CQL-and-CQL3
Create-keyspace-or-column-family
Writing-Data
Reading-Data
Working-with-counter-columns
Composite-Columns
Entity-Persister
Customizing-calls
End-to-End Examples
Clone this wiki locally