public abstract class StoredFieldsReader extends Object implements Cloneable, Closeable
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 long |
ramBytesUsed()
Returns approximate RAM bytes used
|
abstract void |
visitDocument(int n,
StoredFieldVisitor visitor)
Visit the stored fields for document
n |
protected StoredFieldsReader()
public abstract void visitDocument(int n, StoredFieldVisitor visitor) throws IOException
n
IOException
public abstract StoredFieldsReader clone()
public abstract long ramBytesUsed()
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.