com.netflix.astyanax.partitioner
Class BOP20Partitioner

java.lang.Object
  extended by com.netflix.astyanax.partitioner.BOP20Partitioner
All Implemented Interfaces:
com.netflix.astyanax.partitioner.Partitioner

public class BOP20Partitioner
extends java.lang.Object
implements com.netflix.astyanax.partitioner.Partitioner


Field Summary
static int KEY_LENGTH
           
static java.lang.String MAXIMUM
           
static java.lang.String MINIMUM
           
static java.math.BigInteger ONE
           
 
Constructor Summary
BOP20Partitioner()
           
 
Method Summary
 java.lang.String getMaxToken()
           
 java.lang.String getMinToken()
           
static java.lang.String getSegmentToken(int size, int position, java.math.BigInteger minInitialToken, java.math.BigInteger maxInitialToken)
           
 java.lang.String getTokenForKey(java.nio.ByteBuffer key)
           
 java.lang.String getTokenMinusOne(java.lang.String token)
           
 java.util.List<com.netflix.astyanax.connectionpool.TokenRange> splitTokenRange(int count)
           
 java.util.List<com.netflix.astyanax.connectionpool.TokenRange> splitTokenRange(java.lang.String first, java.lang.String last, int count)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MINIMUM

public static final java.lang.String MINIMUM
See Also:
Constant Field Values

MAXIMUM

public static final java.lang.String MAXIMUM
See Also:
Constant Field Values

ONE

public static final java.math.BigInteger ONE

KEY_LENGTH

public static final int KEY_LENGTH
See Also:
Constant Field Values
Constructor Detail

BOP20Partitioner

public BOP20Partitioner()
Method Detail

getMinToken

public java.lang.String getMinToken()
Specified by:
getMinToken in interface com.netflix.astyanax.partitioner.Partitioner

getMaxToken

public java.lang.String getMaxToken()
Specified by:
getMaxToken in interface com.netflix.astyanax.partitioner.Partitioner

splitTokenRange

public java.util.List<com.netflix.astyanax.connectionpool.TokenRange> splitTokenRange(java.lang.String first,
                                                                                      java.lang.String last,
                                                                                      int count)
Specified by:
splitTokenRange in interface com.netflix.astyanax.partitioner.Partitioner

splitTokenRange

public java.util.List<com.netflix.astyanax.connectionpool.TokenRange> splitTokenRange(int count)
Specified by:
splitTokenRange in interface com.netflix.astyanax.partitioner.Partitioner

getTokenForKey

public java.lang.String getTokenForKey(java.nio.ByteBuffer key)
Specified by:
getTokenForKey in interface com.netflix.astyanax.partitioner.Partitioner

getTokenMinusOne

public java.lang.String getTokenMinusOne(java.lang.String token)
Specified by:
getTokenMinusOne in interface com.netflix.astyanax.partitioner.Partitioner

getSegmentToken

public static java.lang.String getSegmentToken(int size,
                                               int position,
                                               java.math.BigInteger minInitialToken,
                                               java.math.BigInteger maxInitialToken)