Class LuceneOptimizedLiveDocsFormat
java.lang.Object
org.apache.lucene.codecs.LiveDocsFormat
com.apple.foundationdb.record.lucene.codec.LuceneOptimizedLiveDocsFormat
public class LuceneOptimizedLiveDocsFormat
extends org.apache.lucene.codecs.LiveDocsFormat
Lazy Reads the LiveDocsFormat to limit the amount of bytes returned
from FDB.
-
Constructor Summary
ConstructorsConstructorDescriptionLuceneOptimizedLiveDocsFormat(org.apache.lucene.codecs.LiveDocsFormat liveDocsFormat) -
Method Summary
Modifier and TypeMethodDescriptionvoidfiles(org.apache.lucene.index.SegmentCommitInfo info, Collection<String> files) org.apache.lucene.util.BitsreadLiveDocs(org.apache.lucene.store.Directory dir, org.apache.lucene.index.SegmentCommitInfo info, org.apache.lucene.store.IOContext context) voidwriteLiveDocs(org.apache.lucene.util.Bits bits, org.apache.lucene.store.Directory dir, org.apache.lucene.index.SegmentCommitInfo info, int newDelCount, org.apache.lucene.store.IOContext context)
-
Constructor Details
-
LuceneOptimizedLiveDocsFormat
public LuceneOptimizedLiveDocsFormat(org.apache.lucene.codecs.LiveDocsFormat liveDocsFormat)
-
-
Method Details
-
readLiveDocs
public org.apache.lucene.util.Bits readLiveDocs(org.apache.lucene.store.Directory dir, org.apache.lucene.index.SegmentCommitInfo info, org.apache.lucene.store.IOContext context) throws IOException - Specified by:
readLiveDocsin classorg.apache.lucene.codecs.LiveDocsFormat- Throws:
IOException
-
writeLiveDocs
public void writeLiveDocs(org.apache.lucene.util.Bits bits, org.apache.lucene.store.Directory dir, org.apache.lucene.index.SegmentCommitInfo info, int newDelCount, org.apache.lucene.store.IOContext context) throws IOException - Specified by:
writeLiveDocsin classorg.apache.lucene.codecs.LiveDocsFormat- Throws:
IOException
-
files
public void files(org.apache.lucene.index.SegmentCommitInfo info, Collection<String> files) throws IOException - Specified by:
filesin classorg.apache.lucene.codecs.LiveDocsFormat- Throws:
IOException
-