Class LuceneOptimizedCompoundFormat

java.lang.Object
org.apache.lucene.codecs.CompoundFormat
com.apple.foundationdb.record.lucene.codec.LuceneOptimizedCompoundFormat

public class LuceneOptimizedCompoundFormat extends org.apache.lucene.codecs.CompoundFormat
Wrapper for the Lucene50CompoundFormat to optimize compound files for sitting on FoundationDB.
  • Field Details

  • Constructor Details

    • LuceneOptimizedCompoundFormat

      public LuceneOptimizedCompoundFormat(org.apache.lucene.codecs.CompoundFormat underlying)
  • Method Details

    • getCompoundReader

      public org.apache.lucene.codecs.CompoundDirectory getCompoundReader(org.apache.lucene.store.Directory dir, org.apache.lucene.index.SegmentInfo si, org.apache.lucene.store.IOContext context) throws IOException
      Specified by:
      getCompoundReader in class org.apache.lucene.codecs.CompoundFormat
      Throws:
      IOException
    • write

      public void write(org.apache.lucene.store.Directory dir, org.apache.lucene.index.SegmentInfo si, org.apache.lucene.store.IOContext context) throws IOException
      Specified by:
      write in class org.apache.lucene.codecs.CompoundFormat
      Throws:
      IOException
    • copyFieldInfosId

      protected void copyFieldInfosId(org.apache.lucene.store.Directory dir, Set<String> filesForAfter, String entriesFile) throws IOException
      Throws:
      IOException
    • validateFileCounts

      protected void validateFileCounts(Set<String> files, int fieldInfos, int storedFields)