public static class Murmur3Partitioner.LongToken extends Token
Token.KeyBound, Token.TokenFactory, Token.TokenSerializer
serializer
Constructor and Description |
---|
LongToken(long token) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Token o) |
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.
|
static java.nio.ByteBuffer |
keyForToken(Murmur3Partitioner.LongToken token)
Reverses murmur3 to find a possible 16 byte key that generates a given token
|
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()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(Token o)
public IPartitioner getPartitioner()
getPartitioner
in interface RingPosition<Token>
getPartitioner
in class Token
public long getHeapSize()
getHeapSize
in class Token
public java.lang.Object getTokenValue()
getTokenValue
in class Token
public double size(Token next)
Token
public Token increaseSlightly()
Token
increaseSlightly
in class Token
public static java.nio.ByteBuffer keyForToken(Murmur3Partitioner.LongToken token)
Copyright © 2009-2021 The Apache Software Foundation