Package it.unimi.di.big.mg4j.index
Class QuasiSuccinctIndexWriter.LongWordOutputBitStream
- java.lang.Object
-
- it.unimi.di.big.mg4j.index.QuasiSuccinctIndexWriter.LongWordOutputBitStream
-
- Enclosing class:
- QuasiSuccinctIndexWriter
public static final class QuasiSuccinctIndexWriter.LongWordOutputBitStream extends Object
-
-
Constructor Summary
Constructors Constructor Description LongWordOutputBitStream(WritableByteChannel writableByteChannel, ByteOrder byteOrder)
-
Method Summary
Modifier and Type Method Description int
align()
long
append(long[] value, long length)
int
append(long value, int width)
long
append(QuasiSuccinctIndexWriter.LongWordCache cache)
long
append(LongArrayBitVector bv)
void
close()
int
writeGamma(long value)
int
writeNonZeroGamma(long value)
-
-
-
Constructor Detail
-
LongWordOutputBitStream
public 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
-
-