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
- IOException
public SizeIndexReader(IIndexReader.IOne2OneIndex idx)
idx
- public long getSize(int index)
getSize
in interface IIndexReader.IOne2SizeIndex
public int get(int index)
get
in interface IIndexReader.IOne2OneIndex
public int[] getAll(int[] index)
getAll
in interface IIndexReader.IOne2OneIndex
public int[] getNext(int index, int length)
getNext
in interface IIndexReader.IOne2OneIndex
public void close() throws IOException
close
in interface IIndexReader
IOException
public void delete()
delete
in interface IIndexReader
public int size()
size
in interface IIndexReader
public void unload() throws IOException
unload
in interface IIndexReader
IOException