Class LuceneOptimizedStoredFieldsReader
java.lang.Object
org.apache.lucene.codecs.StoredFieldsReader
com.apple.foundationdb.record.lucene.codec.LuceneOptimizedStoredFieldsReader
- All Implemented Interfaces:
LucenePrimaryKeySegmentIndexV1.StoredFieldsReaderSegmentInfo,Closeable,AutoCloseable,Cloneable,org.apache.lucene.util.Accountable
public class LuceneOptimizedStoredFieldsReader
extends org.apache.lucene.codecs.StoredFieldsReader
implements LucenePrimaryKeySegmentIndexV1.StoredFieldsReaderSegmentInfo
A
StoredFieldsReader implementation for Stored Fields stored in the DB.
The data for the fields is protobuf-encoded (see lucene_stored_fields.proto) message.
The subspace for the range of documents is the segment name.
Within the subspace, each document key is then suffixed by the docId.-
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsConstructorDescriptionLuceneOptimizedStoredFieldsReader(FDBDirectory directory, org.apache.lucene.index.SegmentInfo si, org.apache.lucene.index.FieldInfos fieldInfos) -
Method Summary
Modifier and TypeMethodDescriptionvoidclone()voidclose()Collection<org.apache.lucene.util.Accountable>static List<byte[]>getPrimaryKeys(String segmentName, FDBDirectory directory) org.apache.lucene.index.SegmentInfolongtoString()voidvisitDocument(int docID, org.apache.lucene.index.StoredFieldVisitor visitor) Methods inherited from class org.apache.lucene.codecs.StoredFieldsReader
getMergeInstance
-
Constructor Details
-
LuceneOptimizedStoredFieldsReader
public LuceneOptimizedStoredFieldsReader(FDBDirectory directory, org.apache.lucene.index.SegmentInfo si, org.apache.lucene.index.FieldInfos fieldInfos)
-
-
Method Details
-
getPrimaryKeys
public static List<byte[]> getPrimaryKeys(String segmentName, FDBDirectory directory) throws IOException - Throws:
IOException
-
visitDocument
public void visitDocument(int docID, org.apache.lucene.index.StoredFieldVisitor visitor) throws IOException - Specified by:
visitDocumentin classorg.apache.lucene.codecs.StoredFieldsReader- Throws:
IOException
-
clone
- Specified by:
clonein classorg.apache.lucene.codecs.StoredFieldsReader
-
checkIntegrity
- Specified by:
checkIntegrityin classorg.apache.lucene.codecs.StoredFieldsReader- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()- Specified by:
ramBytesUsedin interfaceorg.apache.lucene.util.Accountable
-
getChildResources
- Specified by:
getChildResourcesin interfaceorg.apache.lucene.util.Accountable
-
toString
-
getSegmentInfo
public org.apache.lucene.index.SegmentInfo getSegmentInfo()- Specified by:
getSegmentInfoin interfaceLucenePrimaryKeySegmentIndexV1.StoredFieldsReaderSegmentInfo
-