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, ...
| Modifier and Type | Field | Description |
|---|---|---|
aQute.lib.index.Index.Page |
root |
| Constructor | Description |
|---|---|
Index(java.io.File file,
int keySize) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
void |
insert(byte[] k,
long v) |
|
java.util.Iterator<byte[]> |
iterator() |
|
long |
search(byte[] k) |
|
java.lang.String |
toString() |
public Index(java.io.File file,
int keySize)
throws java.io.IOException
java.io.IOExceptionpublic void insert(byte[] k,
long v)
throws java.lang.Exception
java.lang.Exceptionpublic long search(byte[] k)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic java.util.Iterator<byte[]> iterator()
iterator in interface java.lang.Iterable<byte[]>