it.unimi.di.mg4j.index
Class QuasiSuccinctIndexReader.PointerReader

java.lang.Object
  extended by it.unimi.di.mg4j.index.QuasiSuccinctIndexReader.PointerReader
Direct Known Subclasses:
QuasiSuccinctIndexReader.EliasFanoPointerReader, QuasiSuccinctIndexReader.RankedPointerReader
Enclosing class:
QuasiSuccinctIndexReader

protected static class QuasiSuccinctIndexReader.PointerReader
extends Object


Field Summary
 long currentIndex
          The index of the current prefix sum.
protected  int frequency
          The frequency term (i.e., the number of elements of the current list).
protected  int log2Quantum
          The logarithm of the quantum, cached from the index.
protected  long numberOfPointers
          The number of pointers.
protected  int pointerSize
          The size of a pointer.
protected  int quantum
          The logarithm of the quantum, cached from the index.
protected  QuasiSuccinctIndexReader.LongWordBitReader skipPointers
          The longword bit reader for pointers.
protected  long skipPointersStart
          The starting position of the pointers.
protected  QuasiSuccinctIndexReader.LongWordBitReader upperBits
          The longword bit reader for the upper bits.
protected  long upperBitsStart
          The starting position of the upper bits.
 
Constructor Summary
QuasiSuccinctIndexReader.PointerReader(QuasiSuccinctIndexReader.LongWordBitReader upperBits, long upperBitsStart, QuasiSuccinctIndexReader.LongWordBitReader skipPointers, long skipPointersStart, long numberOfPointers, int pointerSize, int frequency, int log2Quantum)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

upperBits

protected final QuasiSuccinctIndexReader.LongWordBitReader upperBits
The longword bit reader for the upper bits.


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 logarithm of 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 int frequency
The frequency term (i.e., the number of elements of the current list).


currentIndex

public long currentIndex
The index of the current prefix sum.

Constructor Detail

QuasiSuccinctIndexReader.PointerReader

public QuasiSuccinctIndexReader.PointerReader(QuasiSuccinctIndexReader.LongWordBitReader upperBits,
                                              long upperBitsStart,
                                              QuasiSuccinctIndexReader.LongWordBitReader skipPointers,
                                              long skipPointersStart,
                                              long numberOfPointers,
                                              int pointerSize,
                                              int frequency,
                                              int log2Quantum)