Class StoredFieldVisitor

Direct Known Subclasses:
DocumentStoredFieldVisitor, StoredFieldsWriter.MergeVisitor

public abstract class StoredFieldVisitor extends Object
Expert: provides a low-level means of accessing the stored field values in an index. See IndexReader.document(int, StoredFieldVisitor).

NOTE: a StoredFieldVisitor implementation should not try to load or visit other stored documents in the same reader because the implementation of stored fields for most codecs is not reentrant and you will see strange exceptions as a result.

See DocumentStoredFieldVisitor, which is a StoredFieldVisitor that builds the Document containing all stored fields. This is used by IndexReader.document(int).

WARNING: This API is experimental and might change in incompatible ways in the next release.
  • Constructor Details

    • StoredFieldVisitor

      protected StoredFieldVisitor()
      Sole constructor. (For invocation by subclass constructors, typically implicit.)
  • Method Details