public static class IndexReader.SizeIndexReader extends Object implements IIndexReader.IOne2SizeIndex
IIndexReader.IOne2LongIndex, IIndexReader.IOne2ManyIndex, IIndexReader.IOne2ManyObjectsIndex, IIndexReader.IOne2OneIndex, IIndexReader.IOne2SizeIndex| Constructor and Description |
|---|
SizeIndexReader(File indexFile)
Constructor used when reopening a dump
|
SizeIndexReader(IIndexReader.IOne2OneIndex idx)
Construct a size index reader based on a int index holding the compressed data
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Delegate to the int index.
|
void |
delete()
Delegate to the int index.
|
int |
get(int index)
Get the (compressed) size.
|
int[] |
getAll(int[] index)
Delegate to the int index.
|
int[] |
getNext(int index,
int length)
Delegate to the int index.
|
long |
getSize(int index)
Expand the compressed size.
|
int |
size()
Delegate to the int index.
|
void |
unload()
Delegate to the int index.
|
public SizeIndexReader(File indexFile) throws IOException
indexFile - IOExceptionpublic SizeIndexReader(IIndexReader.IOne2OneIndex idx)
idx - public long getSize(int index)
getSize in interface IIndexReader.IOne2SizeIndexpublic int get(int index)
get in interface IIndexReader.IOne2OneIndexpublic int[] getAll(int[] index)
getAll in interface IIndexReader.IOne2OneIndexpublic int[] getNext(int index,
int length)
getNext in interface IIndexReader.IOne2OneIndexpublic void close()
throws IOException
close in interface IIndexReaderIOExceptionpublic void delete()
delete in interface IIndexReaderpublic int size()
size in interface IIndexReaderpublic void unload()
throws IOException
unload in interface IIndexReaderIOException