Package org.apache.lucene.util.compress
Class LZ4.HashTable
- java.lang.Object
-
- org.apache.lucene.util.compress.LZ4.HashTable
-
- Direct Known Subclasses:
LZ4.FastCompressionHashTable,LZ4.HighCompressionHashTable
- Enclosing class:
- LZ4
abstract static class LZ4.HashTable extends java.lang.ObjectA record of previous occurrences of sequences of 4 bytes.
-
-
Constructor Summary
Constructors Constructor Description HashTable()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description (package private) abstract booleanassertReset()(package private) abstract intget(int off)Advance the cursor to and 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.
-
-
-
Method Detail
-
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 to and 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()
-
-