public static class IndexReader.LongIndexReader extends Object implements IIndexReader.IOne2LongIndex
Page 0: ArrayLongCompressed Page 1: ArrayLongCompressed ... Page n: ArrayLongCompressed page 0 start in file (8) page 1 start in file (8) ... page n start in file (8) page n+1 start in file (8) (i.e. location of 'page 0 start in file' field) page size (4) total size (4)
IIndexReader.IOne2LongIndex, IIndexReader.IOne2ManyIndex, IIndexReader.IOne2ManyObjectsIndex, IIndexReader.IOne2OneIndex, IIndexReader.IOne2SizeIndex| Constructor and Description |
|---|
LongIndexReader(File indexFile) |
LongIndexReader(File indexFile,
HashMapIntObject<Object> pages,
int size,
int pageSize,
long[] pageStart) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the backing file.
|
void |
delete()
Delete the backing file.
|
long |
get(int index) |
long[] |
getNext(int index,
int length) |
IteratorLong |
iterator() |
int |
reverse(long value) |
void |
set(int index,
long value) |
int |
size() |
void |
unload() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, getNext, reversesize, unloadpublic LongIndexReader(File indexFile, HashMapIntObject<Object> pages, int size, int pageSize, long[] pageStart) throws IOException
IOExceptionpublic LongIndexReader(File indexFile) throws IOException
IOExceptionpublic void close()
IIndexReaderclose in interface IIndexReaderpublic void delete()
IIndexReaderdelete in interface IIndexReaderpublic long get(int index)
public long[] getNext(int index,
int length)
public int reverse(long value)
public void set(int index,
long value)
public void unload()
public int size()
public IteratorLong iterator()