Apache Cassandra™ 1.2


The default partitioner prior to Cassandra 1.2.

Although no longer the default partitioner, you can use the RandomPartitioner in version 1.2, even when using virtual nodes (vnodes). However, if you don't use vnodes, you must calculate the tokens, as described in Generating tokens.

The RandomPartition distributes data evenly across the nodes using an MD5 hash value of the row key. The possible range of hash values is from 0 to 2127 -1.

When using the RandomPartitioner, you can page through all rows using the token function in a CQL 3 query.

Attention: Be sure this document version matches your product version