public interface CompressibleValueContainer<V> extends ValueContainer<V>
| Modifier and Type | Method and Description |
|---|---|
void |
clearStorageAfterCompression(int ngramOrder) |
void |
decompress(BitStream bits,
int ngramOrder,
boolean justConsume,
V outputVal)
Reads and decompresses from the bit stream bits.
|
BitList |
getCompressed(long offset,
int ngramOrder)
Compresses the value at the given offset into a list of bits.
|
void |
swap(long a,
long b,
int ngramOrder)
Swaps values at offsets a and b.
|
add, clearStorageForOrder, createFreshValues, getFromOffset, getScratchValue, numValueBits, setFromOtherValues, setMap, setSizeAtLeast, storeSuffixoffsets, trim, trimAfterNgramvoid swap(long a,
long b,
int ngramOrder)
a - b - ngramOrder - BitList getCompressed(long offset, int ngramOrder)
offset - ngramOrder - void decompress(BitStream bits, int ngramOrder, boolean justConsume, V outputVal)
bits - ngramOrder - justConsume - If true, nothing is returned, and the function simply consumes
the appropriate number of bits from the BitStream.void clearStorageAfterCompression(int ngramOrder)