|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.store.readonly.InterpolationSearchStrategy
public class InterpolationSearchStrategy
A search strategy that uses interpolation to jump to approximately the correct location in the index with as few comparisons as possible. This strategy depends entirely on the uniform distribution of the keys that is guaranteed by the md5 hash.
Constructor Summary | |
---|---|
InterpolationSearchStrategy()
|
Method Summary | |
---|---|
int |
indexOf(java.nio.ByteBuffer index,
byte[] key,
int indexFileSize)
Search for the key in the buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InterpolationSearchStrategy()
Method Detail |
---|
public int indexOf(java.nio.ByteBuffer index, byte[] key, int indexFileSize)
SearchStrategy
indexOf
in interface SearchStrategy
index
- The index bufferkey
- The key to search forindexFileSize
- The size of the index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |