Package it.unimi.dsi.big.webgraph
Class EFGraph.LongWordCache
- java.lang.Object
-
- it.unimi.dsi.big.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intappend(long value, int width)voidclear()voidclose()longlength()longreadLong()voidrewind()voidwriteUnary(int l)
-
-
-
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:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.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
-
-