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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLuceneOptimizedCompoundFormat(org.apache.lucene.codecs.CompoundFormat underlying) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcopyFieldInfosId(org.apache.lucene.store.Directory dir, Set<String> filesForAfter, String entriesFile) org.apache.lucene.codecs.CompoundDirectorygetCompoundReader(org.apache.lucene.store.Directory dir, org.apache.lucene.index.SegmentInfo si, org.apache.lucene.store.IOContext context) protected voidvalidateFileCounts(Set<String> files, int fieldInfos, int storedFields) voidwrite(org.apache.lucene.store.Directory dir, org.apache.lucene.index.SegmentInfo si, org.apache.lucene.store.IOContext context)
-
Field Details
-
DATA_EXTENSION
Extension of compound file.- See Also:
-
ENTRIES_EXTENSION
Extension of compound file entries.- See Also:
-
ENTRY_CODEC
- See Also:
-
VERSION_START
public static final int VERSION_START- See Also:
-
underlying
protected final org.apache.lucene.codecs.CompoundFormat underlying
-
-
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:
getCompoundReaderin classorg.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:
writein classorg.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
-