org.apache.lucene.codecs.lucene40
public class Lucene40TermVectorsReader extends TermVectorsReader implements 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 IOException
IOExceptionpublic void close()
throws IOException
close in interface CloseableIOExceptionpublic Fields get(int docID) throws IOException
TermVectorsReaderOffsetAttribute
available from the DocsAndPositionsEnum.get in class TermVectorsReaderIOExceptionpublic TermVectorsReader clone()
TermVectorsReaderclone in class TermVectorsReaderpublic long ramBytesUsed()
TermVectorsReaderramBytesUsed in class TermVectorsReaderCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.