Class FieldInfosStorage

java.lang.Object
com.apple.foundationdb.record.lucene.directory.FieldInfosStorage

public class FieldInfosStorage extends Object
Class for encapsulating logic around storing FieldInfos, via LuceneOptimizedFieldInfosFormat in FDBDirectory, and caching the data for the life of the directory.
  • Field Details

  • Method Details

    • getAllFieldInfos

      public Map<Long,com.apple.foundationdb.record.lucene.LuceneFieldInfosProto.FieldInfos> getAllFieldInfos() throws IOException
      Throws:
      IOException
    • readGlobalFieldInfos

      public com.apple.foundationdb.record.lucene.LuceneFieldInfosProto.FieldInfos readGlobalFieldInfos() throws IOException
      Throws:
      IOException
    • readFieldInfos

      public com.apple.foundationdb.record.lucene.LuceneFieldInfosProto.FieldInfos readFieldInfos(long id) throws IOException
      Throws:
      IOException
    • writeFieldInfos

      public long writeFieldInfos(com.apple.foundationdb.record.lucene.LuceneFieldInfosProto.FieldInfos value) throws IOException
      Throws:
      IOException
    • updateGlobalFieldInfos

      public void updateGlobalFieldInfos(com.apple.foundationdb.record.lucene.LuceneFieldInfosProto.FieldInfos value) throws IOException
      Throws:
      IOException
    • getFDBLuceneFileReference

      public FDBLuceneFileReference getFDBLuceneFileReference(String fileName)
    • setFieldInfoId

      public void setFieldInfoId(org.apache.lucene.store.Directory wrappingDirectory, String fileName, long id, BitSet fieldBitSet) throws IOException
      Throws:
      IOException
    • getReferenceCount

      public ConcurrentMap<Long,AtomicInteger> getReferenceCount()
    • addReference

      public void addReference(FDBLuceneFileReference reference)
    • delete

      public boolean delete(long id) throws IOException
      Throws:
      IOException
    • copyFieldInfosId

      public static void copyFieldInfosId(org.apache.lucene.store.Directory wrappingDirectory, String fieldInfosFileName, String entriesFile) throws IOException
      Throws:
      IOException