Package org.apache.lucene.codecs.lucene90

# Class Lucene90LiveDocsFormat

java.lang.Object
org.apache.lucene.codecs.LiveDocsFormat
org.apache.lucene.codecs.lucene90.Lucene90LiveDocsFormat

public final class Lucene90LiveDocsFormat extends LiveDocsFormat
Lucene 9.0 live docs format

The .liv file is optional, and only exists when a segment contains deletions.

Although per-segment, this file is maintained exterior to compound segment files.

Deletions (.liv) --> IndexHeader,Generation,Bits

- SegmentHeader --> `IndexHeader`
- Bits --> <`Int64`> LongCount

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Lucene90LiveDocsFormat()`
  Sole constructor.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `files(SegmentCommitInfo info, Collection<String> files)`
  Records all files in use by this `SegmentCommitInfo` into the files argument.
  `Bits`
  `readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context)`
  Read live docs bits.
  `void`
  `writeLiveDocs(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context)`
  Persist live docs bits.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Lucene90LiveDocsFormat

    public Lucene90LiveDocsFormat()
    Sole constructor.

- ## Method Details

  - ### readLiveDocs

    public Bits readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context) throws IOException
    Description copied from class: `LiveDocsFormat`
    Read live docs bits.
    Specified by:
      `readLiveDocs` in class `LiveDocsFormat`
    Throws:
      `IOException`

  - ### writeLiveDocs

    public void writeLiveDocs(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) throws IOException
    Description copied from class: `LiveDocsFormat`
    Persist live docs bits. Use `SegmentCommitInfo.getNextDelGen()` to determine the generation of the deletes file you should write to.
    Specified by:
      `writeLiveDocs` in class `LiveDocsFormat`
    Throws:
      `IOException`

  - ### files

    public void files(SegmentCommitInfo info, Collection<String> files) throws IOException
    Description copied from class: `LiveDocsFormat`
    Records all files in use by this `SegmentCommitInfo` into the files argument.
    Specified by:
      `files` in class `LiveDocsFormat`
    Throws:
      `IOException`