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 int
get
(int off) Advance the cursor tooff
and return an index that stored the same 4 bytes asb[o:o+4)
.(package private) abstract void
initDictionary
(int dictLen) InitdictLen
bytes to be used as a dictionary.(package private) abstract int
previous
(int off) Return an index that less thanoff
and stores the same 4 bytes.(package private) abstract void
reset
(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) InitdictLen
bytes to be used as a dictionary. -
get
abstract int get(int off) Advance the cursor tooff
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-1
indicates that no other index could be found. -
previous
abstract int previous(int off) Return an index that less thanoff
and stores the same 4 bytes. Unlikeget(int)
, it doesn't need to be called on increasing offsets. A return value of-1
indicates that no other index could be found. -
assertReset
abstract boolean assertReset()
-