|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPartitioner<T extends Token>
| Method Summary | |
|---|---|
DecoratedKey<T> |
convertFromDiskFormat(java.lang.String key)
Convert the on disk representation to a DecoratedKey object |
java.lang.String |
convertToDiskFormat(DecoratedKey<T> key)
Convert the DecoratedKey to the on disk format used for this partitioner. |
DecoratedKey<T> |
decorateKey(java.lang.String key)
Transform key to object representation of the on-disk format. |
T |
getMinimumToken()
|
T |
getRandomToken()
|
T |
getToken(java.lang.String key)
|
Token.TokenFactory |
getTokenFactory()
|
T |
midpoint(T left,
T right)
Calculate a Token representing the approximate "middle" of the given range. |
boolean |
preservesOrder()
|
| Method Detail |
|---|
DecoratedKey<T> convertFromDiskFormat(java.lang.String key)
key - On disk representation
java.lang.String convertToDiskFormat(DecoratedKey<T> key)
key - The DecoratedKey in question
DecoratedKey<T> decorateKey(java.lang.String key)
key - the raw, client-facing key
T midpoint(T left,
T right)
T getMinimumToken()
T getToken(java.lang.String key)
T getRandomToken()
Token.TokenFactory getTokenFactory()
boolean preservesOrder()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||