Interface DocOffsetsCodec.Decoder

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.Decoder
A decoder to decode the format on disk to doc offsets. A decoder performs the operations that an encoder performs in reverse order.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    decode(int[] docOffsets, int numDocsInBlock, org.apache.lucene.store.DataInput input)
    Decodes the format on disk to doc offsets.
  • Method Details

    • decode

      void decode(int[] docOffsets, int numDocsInBlock, org.apache.lucene.store.DataInput input) throws IOException
      Decodes the format on disk to doc offsets.
      Parameters:
      docOffsets - the array to store decoded document offsets
      numDocsInBlock - the number of documents in the block to be decoded
      input - the input source containing encoded data to be decoded
      Throws:
      IOException - if an I/O error occurs during decoding