Package org.apache.lucene.codecs
Class LiveDocsFormat
- java.lang.Object
-
- org.apache.lucene.codecs.LiveDocsFormat
-
- Direct Known Subclasses:
Lucene40LiveDocsFormat
public abstract class LiveDocsFormat extends java.lang.ObjectFormat for live/deleted documents
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidfiles(SegmentCommitInfo info, java.util.Collection<java.lang.String> files)Records all files in use by thisSegmentCommitInfointo the files argument.abstract MutableBitsnewLiveDocs(int size)Creates a new MutableBits, with all bits set, for the specified size.abstract MutableBitsnewLiveDocs(Bits existing)Creates a new mutablebits of the same bits set and size of existing.abstract BitsreadLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context)Read live docs bits.abstract voidwriteLiveDocs(MutableBits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context)Persist live docs bits.
-
-
-
Method Detail
-
newLiveDocs
public abstract MutableBits newLiveDocs(int size) throws java.io.IOException
Creates a new MutableBits, with all bits set, for the specified size.- Throws:
java.io.IOException
-
newLiveDocs
public abstract MutableBits newLiveDocs(Bits existing) throws java.io.IOException
Creates a new mutablebits of the same bits set and size of existing.- Throws:
java.io.IOException
-
readLiveDocs
public abstract Bits readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context) throws java.io.IOException
Read live docs bits.- Throws:
java.io.IOException
-
writeLiveDocs
public abstract void writeLiveDocs(MutableBits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) throws java.io.IOException
Persist live docs bits. UseSegmentCommitInfo.getNextDelGen()to determine the generation of the deletes file you should write to.- Throws:
java.io.IOException
-
files
public abstract void files(SegmentCommitInfo info, java.util.Collection<java.lang.String> files) throws java.io.IOException
Records all files in use by thisSegmentCommitInfointo the files argument.- Throws:
java.io.IOException
-
-