org.apache.lucene.codecs.simpletext
Class SimpleTextTermVectorsReader
java.lang.Object
org.apache.lucene.codecs.TermVectorsReader
org.apache.lucene.codecs.simpletext.SimpleTextTermVectorsReader
- All Implemented Interfaces:
- Closeable, Cloneable
public class SimpleTextTermVectorsReader
- extends TermVectorsReader
Reads plain-text term vectors.
FOR RECREATIONAL USE ONLY
- WARNING: This API is experimental and might change in incompatible ways in the next release.
Method Summary |
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. |
SimpleTextTermVectorsReader
public SimpleTextTermVectorsReader(Directory directory,
SegmentInfo si,
IOContext context)
throws IOException
- Throws:
IOException
get
public Fields get(int doc)
throws IOException
- Description copied from class:
TermVectorsReader
- Returns term vectors for this document, or null if
term vectors were not indexed. If offsets are
available they are in an
OffsetAttribute
available from the DocsAndPositionsEnum
.
- Specified by:
get
in class TermVectorsReader
- Throws:
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 class TermVectorsReader
close
public void close()
throws IOException
- Throws:
IOException
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.