Package it.unimi.dsi.webgraph
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
All Methods Instance Methods Concrete Methods 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)
-
-
-
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 interfacejava.lang.AutoCloseable
- Specified by:
close
in 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
-
-