Class Lucene90LiveDocsFormat
java.lang.Object
org.apache.lucene.codecs.LiveDocsFormat
org.apache.lucene.codecs.lucene90.Lucene90LiveDocsFormat
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidfiles(SegmentCommitInfo info, Collection<String> files) Records all files in use by thisSegmentCommitInfointo the files argument.readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context) Read live docs bits.voidwriteLiveDocs(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) Persist live docs bits.
-
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:LiveDocsFormatRead live docs bits.- Specified by:
readLiveDocsin classLiveDocsFormat- Throws:
IOException
-
writeLiveDocs
public void writeLiveDocs(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) throws IOException Description copied from class:LiveDocsFormatPersist live docs bits. UseSegmentCommitInfo.getNextDelGen()to determine the generation of the deletes file you should write to.- Specified by:
writeLiveDocsin classLiveDocsFormat- Throws:
IOException
-
files
Description copied from class:LiveDocsFormatRecords all files in use by thisSegmentCommitInfointo the files argument.- Specified by:
filesin classLiveDocsFormat- Throws:
IOException
-