Class LazyStoredFieldsReader

java.lang.Object
org.apache.lucene.codecs.StoredFieldsReader
com.apple.foundationdb.record.lucene.codec.LazyStoredFieldsReader
All Implemented Interfaces:
LucenePrimaryKeySegmentIndexV1.StoredFieldsReaderSegmentInfo, Closeable, AutoCloseable, Cloneable, org.apache.lucene.util.Accountable

public class LazyStoredFieldsReader extends org.apache.lucene.codecs.StoredFieldsReader implements LucenePrimaryKeySegmentIndexV1.StoredFieldsReaderSegmentInfo
The "legacy" stored fields reader implementation - this one wraps around the Lucene default implementation and provides lazy initialization.
  • Field Summary

    Fields inherited from interface org.apache.lucene.util.Accountable

    NULL_ACCOUNTABLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    LazyStoredFieldsReader(org.apache.lucene.store.Directory directory, org.apache.lucene.index.SegmentInfo si, org.apache.lucene.index.FieldInfos fn, org.apache.lucene.store.IOContext context, LazyCloseable<org.apache.lucene.codecs.StoredFieldsReader> storedFieldsReader)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    void
     
    org.apache.lucene.index.SegmentInfo
     
    long
     
    void
    visitDocument(int docID, org.apache.lucene.index.StoredFieldVisitor visitor)
     

    Methods inherited from class org.apache.lucene.codecs.StoredFieldsReader

    getMergeInstance

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.lucene.util.Accountable

    getChildResources
  • Constructor Details

    • LazyStoredFieldsReader

      public LazyStoredFieldsReader(org.apache.lucene.store.Directory directory, org.apache.lucene.index.SegmentInfo si, org.apache.lucene.index.FieldInfos fn, org.apache.lucene.store.IOContext context, LazyCloseable<org.apache.lucene.codecs.StoredFieldsReader> storedFieldsReader)
  • Method Details

    • visitDocument

      public void visitDocument(int docID, org.apache.lucene.index.StoredFieldVisitor visitor) throws IOException
      Specified by:
      visitDocument in class org.apache.lucene.codecs.StoredFieldsReader
      Throws:
      IOException
    • clone

      public LazyStoredFieldsReader clone()
      Specified by:
      clone in class org.apache.lucene.codecs.StoredFieldsReader
    • checkIntegrity

      public void checkIntegrity() throws IOException
      Specified by:
      checkIntegrity in class org.apache.lucene.codecs.StoredFieldsReader
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • ramBytesUsed

      public long ramBytesUsed()
      Specified by:
      ramBytesUsed in interface org.apache.lucene.util.Accountable
    • getSegmentInfo

      public org.apache.lucene.index.SegmentInfo getSegmentInfo()
      Specified by:
      getSegmentInfo in interface LucenePrimaryKeySegmentIndexV1.StoredFieldsReaderSegmentInfo