Module org.apache.lucene.core
Package org.apache.lucene.index
Class SlowCompositeCodecReaderWrapper.SlowCompositeStoredFieldsReaderWrapper
- java.lang.Object
-
- org.apache.lucene.index.StoredFields
-
- org.apache.lucene.codecs.StoredFieldsReader
-
- org.apache.lucene.index.SlowCompositeCodecReaderWrapper.SlowCompositeStoredFieldsReaderWrapper
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Cloneable
- Enclosing class:
- SlowCompositeCodecReaderWrapper
private class SlowCompositeCodecReaderWrapper.SlowCompositeStoredFieldsReaderWrapper extends StoredFieldsReader
-
-
Field Summary
Fields Modifier and Type Field Description private int[]
docStarts
private StoredFieldsReader[]
readers
-
Constructor Summary
Constructors Constructor Description SlowCompositeStoredFieldsReaderWrapper(StoredFieldsReader[] readers, int[] docStarts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkIntegrity()
Checks consistency of this reader.StoredFieldsReader
clone()
void
close()
void
document(int docID, StoredFieldVisitor visitor)
Expert: visits the fields of a stored document, for custom processing/loading of each field.-
Methods inherited from class org.apache.lucene.codecs.StoredFieldsReader
getMergeInstance
-
Methods inherited from class org.apache.lucene.index.StoredFields
document, document
-
-
-
-
Field Detail
-
readers
private final StoredFieldsReader[] readers
-
docStarts
private final int[] docStarts
-
-
Constructor Detail
-
SlowCompositeStoredFieldsReaderWrapper
SlowCompositeStoredFieldsReaderWrapper(StoredFieldsReader[] readers, int[] docStarts)
-
-
Method Detail
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
clone
public StoredFieldsReader clone()
- Specified by:
clone
in classStoredFieldsReader
-
checkIntegrity
public void checkIntegrity() throws java.io.IOException
Description copied from class:StoredFieldsReader
Checks consistency of this reader.Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
- Specified by:
checkIntegrity
in classStoredFieldsReader
- Throws:
java.io.IOException
-
document
public void document(int docID, StoredFieldVisitor visitor) throws java.io.IOException
Description copied from class:StoredFields
Expert: visits the fields of a stored document, for custom processing/loading of each field. If you simply want to load all fields, useStoredFields.document(int)
. If you want to load a subset, useDocumentStoredFieldVisitor
.- Specified by:
document
in classStoredFields
- Throws:
java.io.IOException
-
-