|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mat.parser.index.IndexReader.SizeIndexReader
public static class IndexReader.SizeIndexReader
Creates a index reader for array sizes, presuming the sizes are stored as ints and get expanded in the reverse of the compression.
| 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 | |
|---|---|
IndexReader.SizeIndexReader(File indexFile)
Constructor used when reopening a dump |
|
IndexReader.SizeIndexReader(IIndexReader.IOne2OneIndex idx)
Construct a size index reader based on a int index holding the compressed data |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexReader.SizeIndexReader(File indexFile)
throws IOException
indexFile -
IOExceptionpublic IndexReader.SizeIndexReader(IIndexReader.IOne2OneIndex idx)
idx - | Method Detail |
|---|
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.IOne2OneIndex
public int[] getNext(int index,
int length)
getNext in interface IIndexReader.IOne2OneIndex
public void close()
throws IOException
close in interface IIndexReaderIOExceptionpublic void delete()
delete in interface IIndexReaderpublic int size()
size in interface IIndexReader
public void unload()
throws IOException
unload in interface IIndexReaderIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||