Class StoredFieldsReader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Cloneable
    Direct Known Subclasses:
    CompressingStoredFieldsReader, Lucene40StoredFieldsReader

    public abstract class StoredFieldsReader
    extends java.lang.Object
    implements java.lang.Cloneable, java.io.Closeable
    Codec API for reading stored fields.

    You need to implement visitDocument(int, StoredFieldVisitor) to read the stored fields for a document, implement clone() (creating clones of any IndexInputs used, etc), and Closeable.close()

    • Method Detail

      • visitDocument

        public abstract void visitDocument​(int n,
                                           StoredFieldVisitor visitor)
                                    throws java.io.IOException
        Visit the stored fields for document n
        Throws:
        java.io.IOException
      • ramBytesUsed

        public abstract long ramBytesUsed()
        Returns approximate RAM bytes used