Class LZ4.HCHashTable
- java.lang.Object
-
- org.apache.lucene.codecs.compressing.LZ4.HCHashTable
-
- Enclosing class:
- LZ4
static final class LZ4.HCHashTable extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
base
private short[]
chainTable
private int[]
hashTable
(package private) static int
MASK
(package private) static int
MAX_ATTEMPTS
(package private) int
nextToUpdate
-
Constructor Summary
Constructors Constructor Description HCHashTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addHash(byte[] bytes, int off)
private int
hashPointer(byte[] bytes, int off)
(package private) void
insert(int off, byte[] bytes)
(package private) boolean
insertAndFindBestMatch(byte[] buf, int off, int matchLimit, LZ4.Match match)
(package private) boolean
insertAndFindWiderMatch(byte[] buf, int off, int startLimit, int matchLimit, int minLen, LZ4.Match match)
private int
next(int off)
private void
reset(int base)
-
-
-
Field Detail
-
MAX_ATTEMPTS
static final int MAX_ATTEMPTS
- See Also:
- Constant Field Values
-
MASK
static final int MASK
- See Also:
- Constant Field Values
-
nextToUpdate
int nextToUpdate
-
base
private int base
-
hashTable
private final int[] hashTable
-
chainTable
private final short[] chainTable
-
-
Method Detail
-
reset
private void reset(int base)
-
hashPointer
private int hashPointer(byte[] bytes, int off)
-
next
private int next(int off)
-
addHash
private void addHash(byte[] bytes, int off)
-
insert
void insert(int off, byte[] bytes)
-
insertAndFindBestMatch
boolean insertAndFindBestMatch(byte[] buf, int off, int matchLimit, LZ4.Match match)
-
insertAndFindWiderMatch
boolean insertAndFindWiderMatch(byte[] buf, int off, int startLimit, int matchLimit, int minLen, LZ4.Match match)
-
-