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()

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected StoredFieldsReader()
      Sole constructor.
    • Constructor Detail

      • StoredFieldsReader

        protected StoredFieldsReader()
        Sole constructor. (For invocation by subclass constructors, typically implicit.)
    • 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
      • clone

        public abstract StoredFieldsReader clone()
        Overrides:
        clone in class java.lang.Object
      • ramBytesUsed

        public abstract long ramBytesUsed()
        Returns approximate RAM bytes used