Package org.apache.lucene.util.compress
Class LZ4.FastCompressionHashTable
- java.lang.Object
-
- org.apache.lucene.util.compress.LZ4.HashTable
-
- org.apache.lucene.util.compress.LZ4.FastCompressionHashTable
-
- Enclosing class:
- LZ4
public static final class LZ4.FastCompressionHashTable extends LZ4.HashTable
Simple lossyLZ4.HashTablethat only stores the last ocurrence for each hash on2^14bytes of memory.
-
-
Constructor Summary
Constructors Constructor Description FastCompressionHashTable()Sole constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleanassertReset()(package private) intget(int off)Advance the cursor to and return an index that stored the same 4 bytes asb[o:o+4).(package private) voidinitDictionary(int dictLen)InitdictLenbytes to be used as a dictionary.intprevious(int off)Return an index that less thanoffand stores the same 4 bytes.(package private) voidreset(byte[] bytes, int off, int len)Reset this hash table in order to compress the given content.
-
-
-
Field Detail
-
bytes
private byte[] bytes
-
base
private int base
-
lastOff
private int lastOff
-
end
private int end
-
hashLog
private int hashLog
-
hashTable
private PackedInts.Mutable hashTable
-
-
Method Detail
-
reset
void reset(byte[] bytes, int off, int len)Description copied from class:LZ4.HashTableReset this hash table in order to compress the given content.- Specified by:
resetin classLZ4.HashTable
-
initDictionary
void initDictionary(int dictLen)
Description copied from class:LZ4.HashTableInitdictLenbytes to be used as a dictionary.- Specified by:
initDictionaryin classLZ4.HashTable
-
get
int get(int off)
Description copied from class:LZ4.HashTableAdvance 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.- Specified by:
getin classLZ4.HashTable
-
previous
public int previous(int off)
Description copied from class:LZ4.HashTableReturn an index that less thanoffand stores the same 4 bytes. UnlikeLZ4.HashTable.get(int), it doesn't need to be called on increasing offsets. A return value of-1indicates that no other index could be found.- Specified by:
previousin classLZ4.HashTable
-
assertReset
boolean assertReset()
- Specified by:
assertResetin classLZ4.HashTable
-
-