public final class Lucene50LiveDocsFormat extends LiveDocsFormat
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
IndexHeader
Int64
> LongCountConstructor and Description |
---|
Lucene50LiveDocsFormat()
Sole constructor.
|
Modifier and Type | Method and 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.
|
public Bits readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context) throws IOException
LiveDocsFormat
readLiveDocs
in class LiveDocsFormat
IOException
public void writeLiveDocs(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) throws IOException
LiveDocsFormat
SegmentCommitInfo.getNextDelGen()
to determine the
generation of the deletes file you should write to.writeLiveDocs
in class LiveDocsFormat
IOException
public void files(SegmentCommitInfo info, Collection<String> files) throws IOException
LiveDocsFormat
SegmentCommitInfo
into the files argument.files
in class LiveDocsFormat
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.