org.apache.cassandra.dht
Class CollatingOrderPreservingPartitioner

java.lang.Object
  extended by org.apache.cassandra.dht.AbstractByteOrderedPartitioner
      extended by org.apache.cassandra.dht.CollatingOrderPreservingPartitioner
All Implemented Interfaces:
IPartitioner<BytesToken>

public class CollatingOrderPreservingPartitioner
extends AbstractByteOrderedPartitioner


Field Summary
 
Fields inherited from class org.apache.cassandra.dht.AbstractByteOrderedPartitioner
BYTE_MASK, MINIMUM
 
Constructor Summary
CollatingOrderPreservingPartitioner()
           
 
Method Summary
 BytesToken getToken(byte[] key)
           
 
Methods inherited from class org.apache.cassandra.dht.AbstractByteOrderedPartitioner
convertFromDiskFormat, decorateKey, getMinimumToken, getRandomToken, getTokenFactory, midpoint, preservesOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollatingOrderPreservingPartitioner

public CollatingOrderPreservingPartitioner()
Method Detail

getToken

public BytesToken getToken(byte[] key)
Specified by:
getToken in interface IPartitioner<BytesToken>
Specified by:
getToken in class AbstractByteOrderedPartitioner
Returns:
a Token that can be used to route a given key (This is NOT a method to create a Token from its string representation; for that, use TokenFactory.fromString.)


Copyright © 2010 The Apache Software Foundation