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

java.lang.Object
  extended by it.unimi.di.mg4j.index.QuasiSuccinctIndexWriter.LongWordOutputBitStream
Enclosing class:
QuasiSuccinctIndexWriter

public static final class QuasiSuccinctIndexWriter.LongWordOutputBitStream
extends Object


Constructor Summary
QuasiSuccinctIndexWriter.LongWordOutputBitStream(WritableByteChannel writableByteChannel, ByteOrder byteOrder)
           
 
Method Summary
 int align()
           
 long append(long[] value, long length)
           
 long append(LongArrayBitVector bv)
           
 int append(long value, int width)
           
 long append(QuasiSuccinctIndexWriter.LongWordCache cache)
           
 void close()
           
 int writeGamma(long value)
           
 int writeNonZeroGamma(long value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuasiSuccinctIndexWriter.LongWordOutputBitStream

public QuasiSuccinctIndexWriter.LongWordOutputBitStream(WritableByteChannel writableByteChannel,
                                                        ByteOrder byteOrder)
Method Detail

append

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

append

public long append(long[] value,
                   long length)
            throws IOException
Throws:
IOException

append

public long append(LongArrayBitVector bv)
            throws IOException
Throws:
IOException

append

public long append(QuasiSuccinctIndexWriter.LongWordCache cache)
            throws IOException
Throws:
IOException

align

public int align()
          throws IOException
Throws:
IOException

writeNonZeroGamma

public int writeNonZeroGamma(long value)
                      throws IOException
Throws:
IOException

writeGamma

public int writeGamma(long value)
               throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException