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.
|
public Lucene40TermVectorsReader(Directory d, SegmentInfo si, FieldInfos fieldInfos, IOContext context) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
IOException
public Fields get(int docID) throws IOException
TermVectorsReader
OffsetAttribute
available from the DocsAndPositionsEnum
.get
in class TermVectorsReader
IOException
public TermVectorsReader clone()
TermVectorsReader
clone
in class TermVectorsReader
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.