Package org.eclipse.mat.parser.index
Class IndexWriter.LongIndexStreamer
- java.lang.Object
-
- org.eclipse.mat.parser.index.IndexWriter.LongIndexStreamer
-
- Enclosing class:
- IndexWriter
public static class IndexWriter.LongIndexStreamer extends Object
-
-
Constructor Summary
Constructors Constructor Description LongIndexStreamer()LongIndexStreamer(File indexFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(long value)voidaddAll(long[] values)voidaddAll(long[] values, int offset, int length)voidaddAll(ArrayLong array)voidaddAll(IteratorLong iterator)voidclose()longget(int index)long[]getNext(int index, int length)IteratorLongiterator()intreverse(long value)voidset(int index, long value)intsize()voidunload()IIndexReader.IOne2LongIndexwriteTo(File indexFile, int size, HashMapIntObject<Object> pages, int pageSize)IIndexReader.IOne2LongIndexwriteTo(File indexFile, long[] array)IIndexReader.IOne2LongIndexwriteTo(File indexFile, ArrayLong array)IIndexReader.IOne2LongIndexwriteTo(File indexFile, IteratorLong iterator)
-
-
-
Constructor Detail
-
LongIndexStreamer
public LongIndexStreamer()
-
LongIndexStreamer
public LongIndexStreamer(File indexFile) throws IOException
- Throws:
IOException
-
-
Method Detail
-
close
public void close() throws IOException- Throws:
IOException
-
writeTo
public IIndexReader.IOne2LongIndex writeTo(File indexFile, int size, HashMapIntObject<Object> pages, int pageSize) throws IOException
- Throws:
IOException
-
writeTo
public IIndexReader.IOne2LongIndex writeTo(File indexFile, long[] array) throws IOException
- Throws:
IOException
-
writeTo
public IIndexReader.IOne2LongIndex writeTo(File indexFile, IteratorLong iterator) throws IOException
- Throws:
IOException
-
writeTo
public IIndexReader.IOne2LongIndex writeTo(File indexFile, ArrayLong array) throws IOException
- Throws:
IOException
-
addAll
public void addAll(IteratorLong iterator) throws IOException
- Throws:
IOException
-
addAll
public void addAll(ArrayLong array) throws IOException
- Throws:
IOException
-
add
public void add(long value) throws IOException- Throws:
IOException
-
addAll
public void addAll(long[] values) throws IOException- Throws:
IOException
-
addAll
public void addAll(long[] values, int offset, int length) throws IOException- Throws:
IOException
-
get
public long get(int index)
-
getNext
public long[] getNext(int index, int length)
-
reverse
public int reverse(long value)
-
set
public void set(int index, long value)
-
unload
public void unload()
-
size
public int size()
-
iterator
public IteratorLong iterator()
-
-