public class SimpleTextLiveDocsFormat extends LiveDocsFormat
FOR RECREATIONAL USE ONLY
| Constructor and Description |
|---|
SimpleTextLiveDocsFormat() |
| Modifier and Type | Method and Description |
|---|---|
void |
files(SegmentInfoPerCommit info,
Collection<String> files)
Records all files in use by this
SegmentInfoPerCommit into the files argument. |
MutableBits |
newLiveDocs(Bits existing)
Creates a new mutablebits of the same bits set and size of existing.
|
MutableBits |
newLiveDocs(int size)
Creates a new MutableBits, with all bits set, for the specified size.
|
Bits |
readLiveDocs(Directory dir,
SegmentInfoPerCommit info,
IOContext context)
Read live docs bits.
|
void |
writeLiveDocs(MutableBits bits,
Directory dir,
SegmentInfoPerCommit info,
int newDelCount,
IOContext context)
Persist live docs bits.
|
public MutableBits newLiveDocs(int size) throws IOException
LiveDocsFormatnewLiveDocs in class LiveDocsFormatIOExceptionpublic MutableBits newLiveDocs(Bits existing) throws IOException
LiveDocsFormatnewLiveDocs in class LiveDocsFormatIOExceptionpublic Bits readLiveDocs(Directory dir, SegmentInfoPerCommit info, IOContext context) throws IOException
LiveDocsFormatreadLiveDocs in class LiveDocsFormatIOExceptionpublic void writeLiveDocs(MutableBits bits, Directory dir, SegmentInfoPerCommit info, int newDelCount, IOContext context) throws IOException
LiveDocsFormatSegmentInfoPerCommit.getNextDelGen() to determine the
generation of the deletes file you should write to.writeLiveDocs in class LiveDocsFormatIOExceptionpublic void files(SegmentInfoPerCommit info, Collection<String> files) throws IOException
LiveDocsFormatSegmentInfoPerCommit into the files argument.files in class LiveDocsFormatIOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.