public final class Lucene40StoredFieldsReader extends StoredFieldsReader implements java.lang.Cloneable, java.io.Closeable
Lucene40StoredFieldsFormat| Constructor and Description |
|---|
Lucene40StoredFieldsReader(Directory d,
SegmentInfo si,
FieldInfos fn,
IOContext context)
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Lucene40StoredFieldsReader |
clone()
Returns a cloned FieldsReader that shares open
IndexInputs with the original one.
|
void |
close()
Closes the underlying
IndexInput streams. |
long |
ramBytesUsed()
Returns approximate RAM bytes used
|
IndexInput |
rawDocs(int[] lengths,
int startDocID,
int numDocs)
Returns the length in bytes of each raw document in a
contiguous range of length numDocs starting with
startDocID.
|
int |
size()
Returns number of documents.
|
void |
visitDocument(int n,
StoredFieldVisitor visitor)
Visit the stored fields for document
n |
public Lucene40StoredFieldsReader(Directory d, SegmentInfo si, FieldInfos fn, IOContext context) throws java.io.IOException
java.io.IOExceptionpublic Lucene40StoredFieldsReader clone()
clone in class StoredFieldsReaderpublic final void close()
throws java.io.IOException
IndexInput streams.
This means that the Fields values will not be accessible.close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException - If an I/O error occurspublic final int size()
public final void visitDocument(int n,
StoredFieldVisitor visitor)
throws java.io.IOException
StoredFieldsReadernvisitDocument in class StoredFieldsReaderjava.io.IOExceptionpublic final IndexInput rawDocs(int[] lengths, int startDocID, int numDocs) throws java.io.IOException
java.io.IOExceptionpublic long ramBytesUsed()
StoredFieldsReaderramBytesUsed in class StoredFieldsReaderCopyright © 2010 - 2024 Adobe. All Rights Reserved