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() |
abstract void |
visitDocument(int n,
StoredFieldVisitor visitor)
Visit the stored fields for document
n |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ramBytesUsed
protected StoredFieldsReader()
public abstract void visitDocument(int n, StoredFieldVisitor visitor) throws IOException
n
IOException
public 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.
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.