|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.unimi.di.mg4j.document.SimpleCompressedDocumentCollection.FrequencyCodec
protected static class SimpleCompressedDocumentCollection.FrequencyCodec
A simple codec for integers that remaps frequent numbers to smaller numbers.
Constructor Summary | |
---|---|
SimpleCompressedDocumentCollection.FrequencyCodec()
|
Method Summary | |
---|---|
int |
decode(int symbol)
Decodes a symbol, returning the original symbol. |
int |
encode(int symbol)
Encodes a symbol, returning a (hopefully smaller) symbol. |
void |
reset()
Empties the queue and the symbol-to-position map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleCompressedDocumentCollection.FrequencyCodec()
Method Detail |
---|
public void reset()
public int encode(int symbol)
symbol
- the input symbol.
public int decode(int symbol)
symbol
- a symbol an encoded file.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |