public abstract class StoredFieldsReader extends Object implements Cloneable, Closeable, Accountable
 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()
| Modifier | Constructor and Description | 
|---|---|
| protected  | StoredFieldsReader()Sole constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract void | checkIntegrity()Checks consistency of this reader. | 
| abstract StoredFieldsReader | clone() | 
| StoredFieldsReader | getMergeInstance()Returns an instance optimized for merging. | 
| abstract void | visitDocument(int docID,
             StoredFieldVisitor visitor)Visit the stored fields for document  docID | 
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildResources, ramBytesUsedprotected StoredFieldsReader()
public abstract void visitDocument(int docID,
                                   StoredFieldVisitor visitor)
                            throws IOException
docIDIOExceptionpublic abstract StoredFieldsReader clone()
public abstract void checkIntegrity()
                             throws IOException
Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
IOExceptionpublic StoredFieldsReader getMergeInstance() throws IOException
 The default implementation returns this
IOExceptionCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.