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 |
|---|---|
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 docID)
Returns term vectors for this document, or null if
term vectors were not indexed.
|
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
public Lucene40TermVectorsReader(Directory d, SegmentInfo si, FieldInfos fieldInfos, IOContext context) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic Fields get(int docID) throws IOException
TermVectorsReaderOffsetAttribute
available from the DocsAndPositionsEnum.get in class TermVectorsReaderIOExceptionpublic TermVectorsReader clone()
TermVectorsReaderclone in class TermVectorsReaderpublic long ramBytesUsed()
AccountableramBytesUsed in interface Accountablepublic void checkIntegrity()
throws IOException
TermVectorsReaderNote that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
checkIntegrity in class TermVectorsReaderIOExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.