Class 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)  
    • Constructor Detail

      • LongWordCache

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

      • 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