public static class ByteOrderedPartitioner.BytesToken extends Token
Token.KeyBound, Token.TokenFactory, Token.TokenSerializer
serializer
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() |
java.lang.String |
toString() |
getToken, isMinimum, maxKeyBound, minKeyBound, minValue, upperBound
public BytesToken(java.nio.ByteBuffer token)
public BytesToken(byte[] token)
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(Token other)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
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
Copyright © 2018 The Apache Software Foundation