java.lang.Object
org.apache.lucene.backward_codecs.lucene99.PostingsUtil

final class PostingsUtil extends Object
Utility class to encode/decode postings block.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static void
    readVIntBlock(IndexInput docIn, long[] docBuffer, long[] freqBuffer, int num, boolean indexHasFreq, boolean decodeFreq)
    Read values that have been written using variable-length encoding and group-varint encoding instead of bit-packing.
    (package private) static void
    writeVIntBlock(IndexOutput docOut, long[] docBuffer, long[] freqBuffer, int num, boolean writeFreqs)
    Write freq buffer with variable-length encoding and doc buffer with group-varint encoding.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PostingsUtil

      PostingsUtil()
  • Method Details

    • readVIntBlock

      static void readVIntBlock(IndexInput docIn, long[] docBuffer, long[] freqBuffer, int num, boolean indexHasFreq, boolean decodeFreq) throws IOException
      Read values that have been written using variable-length encoding and group-varint encoding instead of bit-packing.
      Throws:
      IOException
    • writeVIntBlock

      static void writeVIntBlock(IndexOutput docOut, long[] docBuffer, long[] freqBuffer, int num, boolean writeFreqs) throws IOException
      Write freq buffer with variable-length encoding and doc buffer with group-varint encoding.
      Throws:
      IOException