Package it.unimi.di.big.mg4j.index
Class QuasiSuccinctIndexWriter.Accumulator
- java.lang.Object
-
- it.unimi.di.big.mg4j.index.QuasiSuccinctIndexWriter.Accumulator
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- QuasiSuccinctIndexWriter
protected static final class QuasiSuccinctIndexWriter.Accumulator extends Object implements Closeable
-
-
Field Summary
Fields Modifier and Type Field Description longbitsForLowerBitsThe number of bits used for the lower-bits array.longbitsForPointersThe number of bits used for forward/skip pointers.longbitsForUpperBitsThe number of bits used for the upper-bits array.
-
Constructor Summary
Constructors Constructor Description Accumulator(int bufferSize, int log2Quantum)
-
Method Summary
Modifier and Type Method Description voidadd(long x)voidclose()longdump(QuasiSuccinctIndexWriter.LongWordOutputBitStream lwobs)voidinit(long length, long upperBound, boolean strict, boolean indexZeroes, int log2Quantum)intlowerBits()longnumberOfPointers()intpointerSize()
-
-
-
Constructor Detail
-
Accumulator
public Accumulator(int bufferSize, int log2Quantum) throws IOException- Throws:
IOException
-
-
Method Detail
-
lowerBits
public int lowerBits()
-
pointerSize
public int pointerSize()
-
numberOfPointers
public long numberOfPointers()
-
init
public void init(long length, long upperBound, boolean strict, boolean indexZeroes, int log2Quantum)
-
add
public void add(long x) throws IOException- Throws:
IOException
-
dump
public long dump(QuasiSuccinctIndexWriter.LongWordOutputBitStream lwobs) throws IOException
- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-