it.unimi.di.mg4j.index
Class QuasiSuccinctIndexWriter.LongWordCache

java.lang.Object
  extended by it.unimi.di.mg4j.index.QuasiSuccinctIndexWriter.LongWordCache
All Implemented Interfaces:
Closeable
Enclosing class:
QuasiSuccinctIndexWriter

protected static final class QuasiSuccinctIndexWriter.LongWordCache
extends Object
implements Closeable


Constructor Summary
QuasiSuccinctIndexWriter.LongWordCache(int cacheSize, String suffix)
           
 
Method Summary
 int append(long value, int width)
           
 void clear()
           
 void close()
           
 long length()
           
 long readLong()
           
 void rewind()
           
 void writeUnary(int l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuasiSuccinctIndexWriter.LongWordCache

public QuasiSuccinctIndexWriter.LongWordCache(int cacheSize,
                                              String suffix)
                                       throws IOException
Throws:
IOException
Method Detail

append

public int append(long value,
                  int width)
           throws IOException
Throws:
IOException

clear

public void clear()

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

length

public long length()

writeUnary

public void writeUnary(int l)
                throws IOException
Throws:
IOException

readLong

public long readLong()
              throws IOException
Throws:
IOException

rewind

public void rewind()
            throws IOException
Throws:
IOException