java.lang.Object
org.apache.lucene.util.compress.LZ4.HashTable
- Direct Known Subclasses:
LZ4.FastCompressionHashTable,LZ4.HighCompressionHashTable
- Enclosing class:
LZ4
A record of previous occurrences of sequences of 4 bytes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract boolean(package private) abstract intget(int off) Advance the cursor tooffand return an index that stored the same 4 bytes asb[o:o+4).(package private) abstract voidinitDictionary(int dictLen) InitdictLenbytes to be used as a dictionary.(package private) abstract intprevious(int off) Return an index that less thanoffand stores the same 4 bytes.(package private) abstract voidreset(byte[] b, int off, int len) Reset this hash table in order to compress the given content.
-
Constructor Details
-
HashTable
HashTable()
-
-
Method Details
-
reset
abstract void reset(byte[] b, int off, int len) Reset this hash table in order to compress the given content. -
initDictionary
abstract void initDictionary(int dictLen) InitdictLenbytes to be used as a dictionary. -
get
abstract int get(int off) Advance the cursor tooffand return an index that stored the same 4 bytes asb[o:o+4). This may only be called on strictly increasing sequences of offsets. A return value of-1indicates that no other index could be found. -
previous
abstract int previous(int off) Return an index that less thanoffand stores the same 4 bytes. Unlikeget(int), it doesn't need to be called on increasing offsets. A return value of-1indicates that no other index could be found. -
assertReset
abstract boolean assertReset()
-