public static class ByteOrderedPartitioner.BytesToken extends Token
Token.KeyBound, Token.TokenFactory, Token.TokenSerializerserializer| Constructor and Description | 
|---|
| BytesToken(byte[] token) | 
| BytesToken(java.nio.ByteBuffer token) | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(Token other) | 
| boolean | equals(java.lang.Object obj) | 
| long | getHeapSize() | 
| IPartitioner | getPartitioner() | 
| java.lang.Object | getTokenValue() | 
| int | hashCode() | 
| Token | increaseSlightly()Returns a token that is slightly greater than this. | 
| double | size(Token next)Returns a measure for the token space covered between this token and next. | 
| java.lang.String | toString() | 
getToken, isMinimum, maxKeyBound, minKeyBound, minValue, upperBoundpublic BytesToken(java.nio.ByteBuffer token)
public BytesToken(byte[] token)
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(Token other)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic IPartitioner getPartitioner()
getPartitioner in interface RingPosition<Token>getPartitioner in class Tokenpublic long getHeapSize()
getHeapSize in class Tokenpublic java.lang.Object getTokenValue()
getTokenValue in class Tokenpublic double size(Token next)
Tokenpublic Token increaseSlightly()
TokenincreaseSlightly in class TokenCopyright © 2018 The Apache Software Foundation