Class FieldInfosStorage
java.lang.Object
com.apple.foundationdb.record.lucene.directory.FieldInfosStorage
Class for encapsulating logic around storing
FieldInfos, via
LuceneOptimizedFieldInfosFormat
in FDBDirectory, and caching the data for the life of the directory.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReference(FDBLuceneFileReference reference) static voidcopyFieldInfosId(org.apache.lucene.store.Directory wrappingDirectory, String fieldInfosFileName, String entriesFile) booleandelete(long id) getFDBLuceneFileReference(String fileName) com.apple.foundationdb.record.lucene.LuceneFieldInfosProto.FieldInfosreadFieldInfos(long id) com.apple.foundationdb.record.lucene.LuceneFieldInfosProto.FieldInfosvoidsetFieldInfoId(org.apache.lucene.store.Directory wrappingDirectory, String fileName, long id, BitSet fieldBitSet) voidupdateGlobalFieldInfos(com.apple.foundationdb.record.lucene.LuceneFieldInfosProto.FieldInfos value) longwriteFieldInfos(com.apple.foundationdb.record.lucene.LuceneFieldInfosProto.FieldInfos value)
-
Field Details
-
GLOBAL_FIELD_INFOS_ID
public static final long GLOBAL_FIELD_INFOS_ID- See Also:
-
-
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
-
setFieldInfoId
public void setFieldInfoId(org.apache.lucene.store.Directory wrappingDirectory, String fileName, long id, BitSet fieldBitSet) throws IOException - Throws:
IOException
-
getReferenceCount
-
addReference
-
delete
- Throws:
IOException
-
copyFieldInfosId
public static void copyFieldInfosId(org.apache.lucene.store.Directory wrappingDirectory, String fieldInfosFileName, String entriesFile) throws IOException - Throws:
IOException
-