Interface DocOffsetsCodec.Encoder

Enclosing class:
DocOffsetsCodec
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface DocOffsetsCodec.Encoder
An encoder to store doc offsets in a more space-efficient format for storage.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    encode(int[] docOffsets, int numDocsInCurrentBlock, org.apache.lucene.store.DataOutput output)
    Encodes doc offsets in a more space efficient format for storage.
  • Method Details

    • encode

      void encode(int[] docOffsets, int numDocsInCurrentBlock, org.apache.lucene.store.DataOutput output) throws IOException
      Encodes doc offsets in a more space efficient format for storage.
      Parameters:
      docOffsets - an array of document offsets to encode
      numDocsInCurrentBlock - the number of documents in the current block to encode
      output - the DataOutput to which the encoded data is written
      Throws:
      IOException - if an I/O error occurs during the encoding process