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 Object
A record of previous occurrences of sequences of 4 bytes.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) abstract boolean
     
    (package private) abstract int
    get(int off)
    Advance the cursor to off and return an index that stored the same 4 bytes as b[o:o+4).
    (package private) abstract void
    initDictionary(int dictLen)
    Init dictLen bytes to be used as a dictionary.
    (package private) abstract int
    previous(int off)
    Return an index that less than off 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)
      Init dictLen bytes to be used as a dictionary.
    • get

      abstract int get(int off)
      Advance the cursor to off and return an index that stored the same 4 bytes as b[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 than off and stores the same 4 bytes. Unlike get(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()