Package it.unimi.dsi.big.webgraph
Class EFGraph.Accumulator
- java.lang.Object
-
- it.unimi.dsi.big.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 longbitsForLowerBitsThe number of bits used for the lower-bits array.longbitsForPointersThe number of bits used for forward/skip pointers.longbitsForUpperBitsThe number of bits used for the upper-bits array.
-
Constructor Summary
Constructors Constructor Description Accumulator(int bufferSize, int log2Quantum)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(long x)voidclose()longdump(EFGraph.LongWordOutputBitStream lwobs)voidinit(long length, long upperBound, boolean strict, boolean indexZeroes, int log2Quantum)intlowerBits()longnumberOfPointers()intpointerSize()
-
-
-
Method Detail
-
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:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-