Class StoredFieldsReader

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

    public abstract class StoredFieldsReader
    extends java.lang.Object
    implements java.lang.Cloneable,
    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)
        Visit the stored fields for document n
      • ramBytesUsed

        public abstract long ramBytesUsed()
        Returns approximate RAM bytes used