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, wait
get, getNext, reverse
size, unload
public LongIndexReader(File indexFile, HashMapIntObject<Object> pages, int size, int pageSize, long[] pageStart) throws IOException
IOException
public LongIndexReader(File indexFile) throws IOException
IOException
public void close()
IIndexReader
close
in interface IIndexReader
public void delete()
IIndexReader
delete
in interface IIndexReader
public 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()