|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CompressibleValueContainer<V>
Method Summary | |
---|---|
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. |
Methods inherited from interface edu.berkeley.nlp.lm.values.ValueContainer |
---|
add, clearStorageForOrder, createFreshValues, getFromOffset, getScratchValue, numValueBits, setFromOtherValues, setMap, setSizeAtLeast, storeSuffixoffsets, trim, trimAfterNgram |
Method Detail |
---|
void 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |