Class EFGraph.Accumulator

java.lang.Object
it.unimi.dsi.webgraph.EFGraph.Accumulator
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable
Enclosing class:
EFGraph

protected static final class EFGraph.Accumulator
extends java.lang.Object
implements java.io.Closeable
  • Field Summary

    Fields 
    Modifier and Type Field Description
    long bitsForLowerBits
    The number of bits used for the lower-bits array.
    long bitsForPointers
    The number of bits used for forward/skip pointers.
    long bitsForUpperBits
    The 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
    void add​(long x)  
    void close()  
    long dump​(EFGraph.LongWordOutputBitStream lwobs)  
    void init​(long length, long upperBound, boolean strict, boolean indexZeroes, int log2Quantum)  
    int lowerBits()  
    long numberOfPointers()  
    int pointerSize()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • bitsForUpperBits

      public long bitsForUpperBits
      The number of bits used for the upper-bits array.
    • bitsForLowerBits

      public long bitsForLowerBits
      The number of bits used for the lower-bits array.
    • bitsForPointers

      public long bitsForPointers
      The number of bits used for forward/skip pointers.
  • Constructor Details

    • Accumulator

      public Accumulator​(int bufferSize, int log2Quantum) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • 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 java.io.IOException
      Throws:
      java.io.IOException
    • dump

      public long dump​(EFGraph.LongWordOutputBitStream lwobs) throws java.io.IOException
      Throws:
      java.io.IOException
    • close

      public void close() throws java.io.IOException
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Throws:
      java.io.IOException