Package org.apache.lucene.codecs
Class StoredFieldsReader
- java.lang.Object
-
- org.apache.lucene.codecs.StoredFieldsReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Cloneable
- Direct Known Subclasses:
CompressingStoredFieldsReader
,Lucene40StoredFieldsReader
public abstract class StoredFieldsReader extends java.lang.Object implements java.lang.Cloneable, java.io.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()
-
-
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 java.io.IOException
Visit the stored fields for documentn
- Throws:
java.io.IOException
-
clone
public abstract StoredFieldsReader clone()
-
ramBytesUsed
public abstract long ramBytesUsed()
Returns approximate RAM bytes used
-
-