Skip to content

Cassandra Specific Features

xamry edited this page Jul 13, 2012 · 20 revisions

Kundera allows you to specify data-store specific hooks into a configuration file. You need to add below property into persistence.xml for your persistence unit. Here kundera-cassandra.properties is the name of configuration file that must be in classpath of your application:

<property name="kundera_client_property" value="kundera-cassandra.properties" />

You specify properties in this file as key-value pairs.

Replication Factor

In order to set replication factor, just add below line into kundera-cassandra.properties:

replication_factor=n

where 'n' is an integer number, e.g. 3

Placement Strategy

For setting placement strategy, add below line into kundera-cassandra.properties:

placement_strategy=org.apache.cassandra.locator.SimpleStrategy

OR

placement_strategy=org.apache.cassandra.locator.NetworkTopologyStrategy

Counter Column Family

Inverted Indexing

Clone this wiki locally