public class LocalPartitioner.LocalToken extends Token
Token.KeyBound, Token.TokenFactory, Token.TokenSerializer
serializer
Constructor and Description |
---|
LocalToken(java.nio.ByteBuffer token) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Token o) |
boolean |
equals(java.lang.Object obj) |
long |
getHeapSize() |
IPartitioner |
getPartitioner() |
C |
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
public java.lang.String toString()
public int compareTo(Token o)
compareTo
in interface java.lang.Comparable<Token>
public int hashCode()
public boolean equals(java.lang.Object obj)
public IPartitioner getPartitioner()
getPartitioner
in interface RingPosition<Token>
getPartitioner
in class Token
public long getHeapSize()
getHeapSize
in class Token
public C getTokenValue()
getTokenValue
in class Token
public double size(Token next)
Token
public Token increaseSlightly()
Token
increaseSlightly
in class Token
Copyright © 2009- The Apache Software Foundation