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