|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.store.readonly.BinarySearchStrategy
public class BinarySearchStrategy
A search strategy that does a simple binary search into the buffer to find the key
| Constructor Summary | |
|---|---|
BinarySearchStrategy()
|
|
| 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 BinarySearchStrategy()
| Method Detail |
|---|
public int indexOf(java.nio.ByteBuffer index,
byte[] key,
int indexFileSize)
SearchStrategy
indexOf in interface SearchStrategyindex - 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 | |||||||||