aQute.lib.index
Class Index
java.lang.Object
aQute.lib.index.Index
- All Implemented Interfaces:
- java.lang.Iterable<byte[]>
public class Index
- extends java.lang.Object
- implements java.lang.Iterable<byte[]>
0 -> 0, 122 -> 1
123 -> 123, 244 -> 2
245 -> 245, ...
|
Field Summary |
aQute.lib.index.Index.Page |
root
|
|
Constructor Summary |
Index(java.io.File file,
int keySize)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
root
public aQute.lib.index.Index.Page root
Index
public Index(java.io.File file,
int keySize)
throws java.io.IOException
- Throws:
java.io.IOException
insert
public void insert(byte[] k,
long v)
throws java.lang.Exception
- Throws:
java.lang.Exception
search
public long search(byte[] k)
throws java.lang.Exception
- Throws:
java.lang.Exception
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
iterator
public java.util.Iterator<byte[]> iterator()
- Specified by:
iterator in interface java.lang.Iterable<byte[]>