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, wait
getChildResources, ramBytesUsed
protected StoredFieldsReader()
public abstract void visitDocument(int docID, StoredFieldVisitor visitor) throws java.io.IOException
docID
java.io.IOException
public abstract StoredFieldsReader clone()
clone
in class java.lang.Object
public 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.IOException
public StoredFieldsReader getMergeInstance()
The default implementation returns this