StoredFieldsReader
Codec API for reading stored fields.
You need to implement .document to read the stored fields for a document, implement .clone (creating clones of any IndexInputs used, etc), and .close
Inheritors
Functions
Checks consistency of this reader.
Returns the stored fields of the nth Document in this index. This is just sugar for using DocumentStoredFieldVisitor.
Like .document but only loads the specified fields. Note that this is simply sugar for DocumentStoredFieldVisitor.DocumentStoredFieldVisitor.
Expert: visits the fields of a stored document, for custom processing/loading of each field. If you simply want to load all fields, use .document. If you want to load a subset, use DocumentStoredFieldVisitor.
Optional method: Give a hint to this StoredFields instance that the given document will be read in the near future. This typically delegates to IndexInput.prefetch and is useful to parallelize I/O across multiple documents.