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

    Constructors
    Constructor
    Description
    LuceneOptimizedLiveDocsFormat(org.apache.lucene.codecs.LiveDocsFormat liveDocsFormat)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    files(org.apache.lucene.index.SegmentCommitInfo info, Collection<String> files)
     
    org.apache.lucene.util.Bits
    readLiveDocs(org.apache.lucene.store.Directory dir, org.apache.lucene.index.SegmentCommitInfo info, org.apache.lucene.store.IOContext context)
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      readLiveDocs in class org.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:
      writeLiveDocs in class org.apache.lucene.codecs.LiveDocsFormat
      Throws:
      IOException
    • files

      public void files(org.apache.lucene.index.SegmentCommitInfo info, Collection<String> files) throws IOException
      Specified by:
      files in class org.apache.lucene.codecs.LiveDocsFormat
      Throws:
      IOException