org.eclipse.mat.parser.index
Class IndexWriter.LongIndexStreamer

java.lang.Object
  extended by org.eclipse.mat.parser.index.IndexWriter.LongIndexStreamer
Enclosing class:
IndexWriter

public static class IndexWriter.LongIndexStreamer
extends java.lang.Object


Constructor Summary
IndexWriter.LongIndexStreamer()
           
IndexWriter.LongIndexStreamer(java.io.File indexFile)
           
 
Method Summary
 void add(long value)
           
 void addAll(ArrayLong array)
           
 void addAll(IteratorLong iterator)
           
 void addAll(long[] values)
           
 void addAll(long[] values, int offset, int length)
           
 void close()
           
 long get(int index)
           
 long[] getNext(int index, int length)
           
 IteratorLong iterator()
           
 int reverse(long value)
           
 void set(int index, long value)
           
 int size()
           
 void unload()
           
 IIndexReader.IOne2LongIndex writeTo(java.io.File indexFile, ArrayLong array)
           
 IIndexReader.IOne2LongIndex writeTo(java.io.File indexFile, int size, HashMapIntObject<java.lang.Object> pages, int pageSize)
           
 IIndexReader.IOne2LongIndex writeTo(java.io.File indexFile, IteratorLong iterator)
           
 IIndexReader.IOne2LongIndex writeTo(java.io.File indexFile, long[] array)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexWriter.LongIndexStreamer

public IndexWriter.LongIndexStreamer()

IndexWriter.LongIndexStreamer

public IndexWriter.LongIndexStreamer(java.io.File indexFile)
                              throws java.io.IOException
Throws:
java.io.IOException
Method Detail

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

writeTo

public IIndexReader.IOne2LongIndex writeTo(java.io.File indexFile,
                                           int size,
                                           HashMapIntObject<java.lang.Object> pages,
                                           int pageSize)
                                    throws java.io.IOException
Throws:
java.io.IOException

writeTo

public IIndexReader.IOne2LongIndex writeTo(java.io.File indexFile,
                                           long[] array)
                                    throws java.io.IOException
Throws:
java.io.IOException

writeTo

public IIndexReader.IOne2LongIndex writeTo(java.io.File indexFile,
                                           IteratorLong iterator)
                                    throws java.io.IOException
Throws:
java.io.IOException

writeTo

public IIndexReader.IOne2LongIndex writeTo(java.io.File indexFile,
                                           ArrayLong array)
                                    throws java.io.IOException
Throws:
java.io.IOException

addAll

public void addAll(IteratorLong iterator)
            throws java.io.IOException
Throws:
java.io.IOException

addAll

public void addAll(ArrayLong array)
            throws java.io.IOException
Throws:
java.io.IOException

add

public void add(long value)
         throws java.io.IOException
Throws:
java.io.IOException

addAll

public void addAll(long[] values)
            throws java.io.IOException
Throws:
java.io.IOException

addAll

public void addAll(long[] values,
                   int offset,
                   int length)
            throws java.io.IOException
Throws:
java.io.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()