public class Lucene40TermVectorsReader extends TermVectorsReader implements java.io.Closeable
It reads .tvd, .tvf, and .tvx files.
Lucene40TermVectorsFormat| Constructor and Description |
|---|
Lucene40TermVectorsReader(Directory d,
SegmentInfo si,
FieldInfos fieldInfos,
IOContext context)
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TermVectorsReader |
clone()
Create a clone that one caller at a time may use to
read term vectors.
|
void |
close() |
Fields |
get(int docID)
Returns term vectors for this document, or null if
term vectors were not indexed.
|
long |
ramBytesUsed()
Returns approximate RAM bytes used
|
public Lucene40TermVectorsReader(Directory d, SegmentInfo si, FieldInfos fieldInfos, IOContext context) throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic Fields get(int docID) throws java.io.IOException
TermVectorsReaderOffsetAttribute
available from the DocsAndPositionsEnum.get in class TermVectorsReaderjava.io.IOExceptionpublic TermVectorsReader clone()
TermVectorsReaderclone in class TermVectorsReaderpublic long ramBytesUsed()
TermVectorsReaderramBytesUsed in class TermVectorsReaderCopyright © 2010 - 2024 Adobe. All Rights Reserved