|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mat.parser.internal.snapshot.RetainedSizeCache
public class RetainedSizeCache
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.mat.parser.index.IIndexReader |
---|
IIndexReader.IOne2LongIndex, IIndexReader.IOne2ManyIndex, IIndexReader.IOne2ManyObjectsIndex, IIndexReader.IOne2OneIndex, IIndexReader.IOne2SizeIndex |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
void |
close()
Close the backing file. |
void |
delete()
Delete the backing file. |
long |
get(int key)
|
void |
put(int key,
long value)
|
int |
size()
Size of the index |
void |
unload()
Clear the caches. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RetainedSizeCache(File f)
f
- public RetainedSizeCache(XSnapshotInfo snapshotInfo)
snapshotInfo
- Method Detail |
---|
public long get(int key)
public void put(int key, long value)
public void close()
IIndexReader
close
in interface IIndexReader
public int size()
IIndexReader
size
in interface IIndexReader
public void unload() throws IOException
IIndexReader
unload
in interface IIndexReader
IOException
public void delete()
IIndexReader
delete
in interface IIndexReader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |