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 |
|---|---|
void |
checkIntegrity()
Checks consistency of this reader.
|
Lucene40StoredFieldsReader |
clone()
Returns a cloned FieldsReader that shares open
IndexInputs with the original one.
|
void |
close()
Closes the underlying
IndexInput streams. |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
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 Closeableclose in interface AutoCloseableIOException - 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
IOExceptionpublic long ramBytesUsed()
AccountableramBytesUsed in interface Accountablepublic void checkIntegrity()
throws IOException
StoredFieldsReaderNote that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
checkIntegrity in class StoredFieldsReaderIOExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.