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