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 and Description |
|---|---|
aQute.lib.index.Index.Page |
root |
| Constructor and Description |
|---|
Index(java.io.File file,
int keySize) |
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[]>Copyright (c) aQute SARL (2000, 2017) and others. All Rights Reserved.