Module org.apache.lucene.core
Package org.apache.lucene.index
Class SlowCompositeCodecReaderWrapper.SlowCompositeTermVectorsReaderWrapper
- java.lang.Object
-
- org.apache.lucene.index.TermVectors
-
- org.apache.lucene.codecs.TermVectorsReader
-
- org.apache.lucene.index.SlowCompositeCodecReaderWrapper.SlowCompositeTermVectorsReaderWrapper
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Cloneable
- Enclosing class:
- SlowCompositeCodecReaderWrapper
private class SlowCompositeCodecReaderWrapper.SlowCompositeTermVectorsReaderWrapper extends TermVectorsReader
-
-
Field Summary
Fields Modifier and Type Field Description private int[]
docStarts
private TermVectorsReader[]
readers
-
Fields inherited from class org.apache.lucene.index.TermVectors
EMPTY
-
-
Constructor Summary
Constructors Constructor Description SlowCompositeTermVectorsReaderWrapper(TermVectorsReader[] readers, int[] docStarts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkIntegrity()
Checks consistency of this reader.TermVectorsReader
clone()
Create a clone that one caller at a time may use to read term vectors.void
close()
Fields
get(int doc)
Returns term vectors for this document, or null if term vectors were not indexed.-
Methods inherited from class org.apache.lucene.codecs.TermVectorsReader
getMergeInstance
-
Methods inherited from class org.apache.lucene.index.TermVectors
get
-
-
-
-
Field Detail
-
readers
private final TermVectorsReader[] readers
-
docStarts
private final int[] docStarts
-
-
Constructor Detail
-
SlowCompositeTermVectorsReaderWrapper
SlowCompositeTermVectorsReaderWrapper(TermVectorsReader[] readers, int[] docStarts)
-
-
Method Detail
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
clone
public TermVectorsReader clone()
Description copied from class:TermVectorsReader
Create a clone that one caller at a time may use to read term vectors.- Specified by:
clone
in classTermVectorsReader
-
checkIntegrity
public void checkIntegrity() throws java.io.IOException
Description copied from class:TermVectorsReader
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 classTermVectorsReader
- Throws:
java.io.IOException
-
get
public Fields get(int doc) throws java.io.IOException
Description copied from class:TermVectors
Returns term vectors for this document, or null if term vectors were not indexed.The returned Fields instance acts like a single-document inverted index (the docID will be 0). If offsets are available they are in an
OffsetAttribute
available from thePostingsEnum
.- Specified by:
get
in classTermVectors
- Throws:
java.io.IOException
-
-