public abstract class StoredFieldsReader extends java.lang.Object implements java.lang.Cloneable, java.io.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 java.io.IOException
docIDjava.io.IOExceptionpublic abstract StoredFieldsReader clone()
clone in class java.lang.Objectpublic abstract void checkIntegrity()
throws java.io.IOException
Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
java.io.IOExceptionpublic StoredFieldsReader getMergeInstance() throws java.io.IOException
The default implementation returns this
java.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.