Package it.unimi.di.big.mg4j.index
Class QuasiSuccinctIndexReader.PointerReader
- java.lang.Object
-
- it.unimi.di.big.mg4j.index.QuasiSuccinctIndexReader.PointerReader
-
- Direct Known Subclasses:
QuasiSuccinctIndexReader.EliasFanoPointerReader,QuasiSuccinctIndexReader.RankedPointerReader
- Enclosing class:
- QuasiSuccinctIndexReader
protected static class QuasiSuccinctIndexReader.PointerReader extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected longcurrThe current word position in the list of upper bits.longcurrentIndexThe index of the current prefix sum.protected longfrequencyThe frequency of the term (i.e., the number of elements of the current list).protected LongBigListlistThe underlying list.protected intlog2QuantumThe logarithm of the quantum, cached from the index.protected longnumberOfPointersThe number of pointers.protected intpointerSizeThe size of a pointer.protected intquantumThe quantum, cached from the index.protected QuasiSuccinctIndexReader.LongWordBitReaderskipPointersThe longword bit reader for pointers.protected longskipPointersStartThe starting position of the pointers.protected longupperBitsStartThe starting position of the upper bits.protected longwindowThe 64-bit window.
-
Constructor Summary
Constructors Constructor Description PointerReader(LongBigList list, long upperBitsStart, QuasiSuccinctIndexReader.LongWordBitReader skipPointers, long skipPointersStart, long numberOfPointers, int pointerSize, long frequency, int log2Quantum)
-
-
-
Field Detail
-
list
protected final LongBigList list
The underlying list.
-
skipPointers
protected final QuasiSuccinctIndexReader.LongWordBitReader skipPointers
The longword bit reader for pointers.
-
skipPointersStart
protected final long skipPointersStart
The starting position of the pointers.
-
upperBitsStart
protected final long upperBitsStart
The starting position of the upper bits.
-
log2Quantum
protected final int log2Quantum
The logarithm of the quantum, cached from the index.
-
quantum
protected final int quantum
The quantum, cached from the index.
-
pointerSize
protected final int pointerSize
The size of a pointer.
-
numberOfPointers
protected final long numberOfPointers
The number of pointers.
-
frequency
protected final long frequency
The frequency of the term (i.e., the number of elements of the current list).
-
window
protected long window
The 64-bit window.
-
curr
protected long curr
The current word position in the list of upper bits.
-
currentIndex
public long currentIndex
The index of the current prefix sum.
-
-
Constructor Detail
-
PointerReader
public PointerReader(LongBigList list, long upperBitsStart, QuasiSuccinctIndexReader.LongWordBitReader skipPointers, long skipPointersStart, long numberOfPointers, int pointerSize, long frequency, int log2Quantum)
-
-