Package org.eclipse.mat.parser.index
Class IndexWriter.IntIndexCollector
- java.lang.Object
-
- org.eclipse.mat.parser.index.IndexWriter.IntIndexCollector
-
- All Implemented Interfaces:
IIndexReader,IIndexReader.IOne2OneIndex
- Enclosing class:
- IndexWriter
public static class IndexWriter.IntIndexCollector extends Object implements IIndexReader.IOne2OneIndex
-
-
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
Constructors Constructor Description IntIndexCollector(int size, int mostSignificantBit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the backing file.voiddelete()Delete the backing file.intget(int index)int[]getAll(int[] index)int[]getNext(int index, int length)IteratorIntiterator()voidset(int index, int value)intsize()Size of the indexvoidunload()Clear the caches.IIndexReader.IOne2OneIndexwriteTo(DataOutputStream out, long position)IIndexReader.IOne2OneIndexwriteTo(File indexFile)
-
-
-
Method Detail
-
writeTo
public IIndexReader.IOne2OneIndex writeTo(File indexFile) throws IOException
- Throws:
IOException
-
writeTo
public IIndexReader.IOne2OneIndex writeTo(DataOutputStream out, long position) throws IOException
- Throws:
IOException
-
set
public void set(int index, int value)
-
get
public int get(int index)
- Specified by:
getin interfaceIIndexReader.IOne2OneIndex
-
close
public void close() throws IOExceptionDescription copied from interface:IIndexReaderClose the backing file.- Specified by:
closein interfaceIIndexReader- Throws:
IOException
-
delete
public void delete()
Description copied from interface:IIndexReaderDelete the backing file.- Specified by:
deletein interfaceIIndexReader
-
size
public int size()
Description copied from interface:IIndexReaderSize of the index- Specified by:
sizein interfaceIIndexReader- Returns:
- number of entries
-
unload
public void unload()
Description copied from interface:IIndexReaderClear the caches. Used when the indexes are not current in use and the memory needs to be reclaimed such as when building the dominator tree.- Specified by:
unloadin interfaceIIndexReader
-
getAll
public int[] getAll(int[] index)
- Specified by:
getAllin interfaceIIndexReader.IOne2OneIndex
-
getNext
public int[] getNext(int index, int length)- Specified by:
getNextin interfaceIIndexReader.IOne2OneIndex
-
iterator
public IteratorInt iterator()
-
-