Package org.apache.lucene.codecs
Class StoredFieldsReader
- java.lang.Object
-
- org.apache.lucene.codecs.StoredFieldsReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Cloneable
- Direct Known Subclasses:
CompressingStoredFieldsReader
,Lucene40StoredFieldsReader
public abstract class StoredFieldsReader extends Object implements Cloneable, Closeable
Codec API for reading stored fields.You need to implement
visitDocument(int, StoredFieldVisitor)
to read the stored fields for a document, implementclone()
(creating clones of any IndexInputs used, etc), andCloseable.close()
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StoredFieldsReader()
Sole constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract StoredFieldsReader
clone()
abstract long
ramBytesUsed()
Returns approximate RAM bytes usedabstract void
visitDocument(int n, StoredFieldVisitor visitor)
Visit the stored fields for documentn
-
-
-
Method Detail
-
visitDocument
public abstract void visitDocument(int n, StoredFieldVisitor visitor) throws IOException
Visit the stored fields for documentn
- Throws:
IOException
-
clone
public abstract StoredFieldsReader clone()
-
ramBytesUsed
public abstract long ramBytesUsed()
Returns approximate RAM bytes used
-
-