public final class Lucene40StoredFieldsReader extends StoredFieldsReader implements Cloneable, 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. |
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 IOException
IOExceptionpublic Lucene40StoredFieldsReader clone()
clone in class StoredFieldsReaderpublic final void close()
throws IOException
IndexInput streams.
This means that the Fields values will not be accessible.close in interface CloseableIOException - If an I/O error occurspublic final int size()
public final void visitDocument(int n,
StoredFieldVisitor visitor)
throws IOException
StoredFieldsReadernvisitDocument in class StoredFieldsReaderIOExceptionpublic final IndexInput rawDocs(int[] lengths, int startDocID, int numDocs) throws IOException
IOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.