Package org.apache.lucene.codecs
Class LiveDocsFormat
java.lang.Object
org.apache.lucene.codecs.LiveDocsFormat
- Direct Known Subclasses:
Lucene40LiveDocsFormat
Format for live/deleted documents
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
files
(SegmentCommitInfo info, Collection<String> files) Records all files in use by thisSegmentCommitInfo
into the files argument.abstract MutableBits
newLiveDocs
(int size) Creates a new MutableBits, with all bits set, for the specified size.abstract MutableBits
newLiveDocs
(Bits existing) Creates a new mutablebits of the same bits set and size of existing.abstract Bits
readLiveDocs
(Directory dir, SegmentCommitInfo info, IOContext context) Read live docs bits.abstract void
writeLiveDocs
(MutableBits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) Persist live docs bits.
-
Constructor Details
-
LiveDocsFormat
protected LiveDocsFormat()Sole constructor. (For invocation by subclass constructors, typically implicit.)
-
-
Method Details
-
newLiveDocs
Creates a new MutableBits, with all bits set, for the specified size.- Throws:
IOException
-
newLiveDocs
Creates a new mutablebits of the same bits set and size of existing.- Throws:
IOException
-
readLiveDocs
public abstract Bits readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context) throws IOException Read live docs bits.- Throws:
IOException
-
writeLiveDocs
public abstract void writeLiveDocs(MutableBits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) throws IOException Persist live docs bits. UseSegmentCommitInfo.getNextDelGen()
to determine the generation of the deletes file you should write to.- Throws:
IOException
-
files
Records all files in use by thisSegmentCommitInfo
into the files argument.- Throws:
IOException
-