Class EFGraph.LongWordCache

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

protected static final class EFGraph.LongWordCache
extends java.lang.Object
implements java.io.Closeable
  • Constructor Summary

    Constructors 
    Constructor Description
    LongWordCache​(int cacheSize, java.lang.String suffix)  
  • Method Summary

    Modifier and Type Method Description
    int append​(long value, int width)  
    void clear()  
    void close()  
    long length()  
    long readLong()  
    void rewind()  
    void writeUnary​(int l)  

    Methods inherited from class java.lang.Object

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

    • LongWordCache

      public LongWordCache​(int cacheSize, java.lang.String suffix) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • append

      public int append​(long value, int width) throws java.io.IOException
      Throws:
      java.io.IOException
    • clear

      public void clear()
    • 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
    • length

      public long length()
    • writeUnary

      public void writeUnary​(int l) throws java.io.IOException
      Throws:
      java.io.IOException
    • readLong

      public long readLong() throws java.io.IOException
      Throws:
      java.io.IOException
    • rewind

      public void rewind() throws java.io.IOException
      Throws:
      java.io.IOException