Package org.apache.lucene.index
Class TermVectorAccessor
- java.lang.Object
-
- org.apache.lucene.index.TermVectorAccessor
-
public class TermVectorAccessor extends Object
Transparent access to the vector space model, either via TermFreqVector or by resolving it from the inverted index. Resolving a term vector from a large index can be a time consuming process. Warning! This class is not thread safe!
-
-
Constructor Summary
Constructors Constructor Description TermVectorAccessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(org.apache.lucene.index.IndexReader indexReader, int documentNumber, String fieldName, org.apache.lucene.index.TermVectorMapper mapper)
Visits the TermVectorMapper and populates it with terms available for a given document, either via a vector created at index time or by resolving them from the inverted index.
-
-
-
Method Detail
-
accept
public void accept(org.apache.lucene.index.IndexReader indexReader, int documentNumber, String fieldName, org.apache.lucene.index.TermVectorMapper mapper) throws IOException
Visits the TermVectorMapper and populates it with terms available for a given document, either via a vector created at index time or by resolving them from the inverted index.- Parameters:
indexReader
- Index sourcedocumentNumber
- Source document to accessfieldName
- Field to resolvemapper
- Mapper to be mapped with data- Throws:
IOException
-
-