org.eclipse.mat.parser.index
Class IndexWriter.Identifier
java.lang.Object
org.eclipse.mat.parser.index.IndexWriter.Identifier
- All Implemented Interfaces:
- IIndexReader, IIndexReader.IOne2LongIndex
- Enclosing class:
- IndexWriter
public static class IndexWriter.Identifier
- extends java.lang.Object
- implements IIndexReader.IOne2LongIndex
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexWriter.Identifier
public IndexWriter.Identifier()
add
public void add(long id)
sort
public void sort()
size
public int size()
- Description copied from interface:
IIndexReader
- Size of the index
- Specified by:
size
in interface IIndexReader
- Returns:
- number of entries
get
public long get(int index)
- Specified by:
get
in interface IIndexReader.IOne2LongIndex
reverse
public int reverse(long val)
- Specified by:
reverse
in interface IIndexReader.IOne2LongIndex
iterator
public IteratorLong iterator()
getNext
public long[] getNext(int index,
int length)
- Specified by:
getNext
in interface IIndexReader.IOne2LongIndex
close
public void close()
throws java.io.IOException
- Description copied from interface:
IIndexReader
- Close the backing file.
- Specified by:
close
in interface IIndexReader
- Throws:
java.io.IOException
delete
public void delete()
- Description copied from interface:
IIndexReader
- Delete the backing file.
- Specified by:
delete
in interface IIndexReader
unload
public void unload()
throws java.io.IOException
- Description copied from interface:
IIndexReader
- Clear 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:
unload
in interface IIndexReader
- Throws:
java.io.IOException