public class RetainedSizeCache extends Object implements IIndexReader
IIndexReader.IOne2LongIndex, IIndexReader.IOne2ManyIndex, IIndexReader.IOne2ManyObjectsIndex, IIndexReader.IOne2OneIndex, IIndexReader.IOne2SizeIndex| Constructor and Description |
|---|
RetainedSizeCache(File f)
File is expected to exist, and is read in the new format.
|
RetainedSizeCache(XSnapshotInfo snapshotInfo)
Reads file i2sv2.index in new format,
or file i2s.index in the old format,
or creates an empty map.
|
public RetainedSizeCache(File f)
f - public RetainedSizeCache(XSnapshotInfo snapshotInfo)
snapshotInfo - public long get(int key)
public void put(int key,
long value)
public void close()
IIndexReaderclose in interface IIndexReaderpublic int size()
IIndexReadersize in interface IIndexReaderpublic void unload()
throws IOException
IIndexReaderunload in interface IIndexReaderIOExceptionpublic void delete()
IIndexReaderdelete in interface IIndexReader