Package 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 Object implements IIndexReader.IOne2LongIndex
-
-
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 Identifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(long id)
void
close()
Close the backing file.void
delete()
Delete the backing file.long
get(int index)
long[]
getNext(int index, int length)
IteratorLong
iterator()
int
reverse(long val)
int
size()
Size of the indexvoid
sort()
void
unload()
Clear the caches.
-
-
-
Method Detail
-
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 interfaceIIndexReader
- Returns:
- number of entries
-
get
public long get(int index)
- Specified by:
get
in interfaceIIndexReader.IOne2LongIndex
-
reverse
public int reverse(long val)
- Specified by:
reverse
in interfaceIIndexReader.IOne2LongIndex
-
iterator
public IteratorLong iterator()
-
getNext
public long[] getNext(int index, int length)
- Specified by:
getNext
in interfaceIIndexReader.IOne2LongIndex
-
close
public void close() throws IOException
Description copied from interface:IIndexReader
Close the backing file.- Specified by:
close
in interfaceIIndexReader
- Throws:
IOException
-
delete
public void delete()
Description copied from interface:IIndexReader
Delete the backing file.- Specified by:
delete
in interfaceIIndexReader
-
unload
public void unload() throws 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 interfaceIIndexReader
- Throws:
IOException
-
-