public class SimpleTextLiveDocsFormat extends LiveDocsFormat
FOR RECREATIONAL USE ONLY
Modifier and Type | Class and Description |
---|---|
(package private) static class |
SimpleTextLiveDocsFormat.SimpleTextBits |
Modifier and Type | Field and Description |
---|---|
(package private) static BytesRef |
DOC |
(package private) static BytesRef |
END |
(package private) static java.lang.String |
LIVEDOCS_EXTENSION |
(package private) static BytesRef |
SIZE |
Constructor and Description |
---|
SimpleTextLiveDocsFormat() |
Modifier and Type | Method and Description |
---|---|
void |
files(SegmentCommitInfo info,
java.util.Collection<java.lang.String> files)
Records all files in use by this
SegmentCommitInfo into the files argument. |
private int |
parseIntAt(BytesRef bytes,
int offset,
CharsRefBuilder scratch) |
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.
|
static final java.lang.String LIVEDOCS_EXTENSION
static final BytesRef SIZE
static final BytesRef DOC
static final BytesRef END
public Bits readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context) throws java.io.IOException
LiveDocsFormat
readLiveDocs
in class LiveDocsFormat
java.io.IOException
private int parseIntAt(BytesRef bytes, int offset, CharsRefBuilder scratch)
public void writeLiveDocs(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) throws java.io.IOException
LiveDocsFormat
SegmentCommitInfo.getNextDelGen()
to determine the
generation of the deletes file you should write to.writeLiveDocs
in class LiveDocsFormat
java.io.IOException
public void files(SegmentCommitInfo info, java.util.Collection<java.lang.String> files) throws java.io.IOException
LiveDocsFormat
SegmentCommitInfo
into the files argument.files
in class LiveDocsFormat
java.io.IOException