java.lang.Object | ||
↳ | org.apache.lucene.index.TermVectorMapper | |
↳ | org.apache.lucene.index.SortedTermVectorMapper |
Store a sorted collection of TermVectorEntry
s. Collects all term information
into a single, SortedSet.
NOTE: This Mapper ignores all Field information for the Document. This means that if you are using offset/positions you will not
know what Fields they correlate with.
This is not thread-safe
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ALL | Stand-in name for the field in TermVectorEntry . |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The TermVectorEntrySet.
| |||||||||||
Map the Term Vector information into your own structure
| |||||||||||
Tell the mapper what to expect in regards to field, number of terms, offset and position storage.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.index.TermVectorMapper
| |||||||||||
From class
java.lang.Object
|
Stand-in name for the field in TermVectorEntry
.
comparator | A Comparator for sorting TermVectorEntry s
|
---|
The TermVectorEntrySet. A SortedSet of TermVectorEntry
objects. Sort is by the comparator passed into the constructor.
This set will be empty until after the mapping process takes place.
TermVectorEntry
.
Map the Term Vector information into your own structure
term | The term to map |
---|---|
frequency | The frequency of the term |
offsets | Offset information, may be null |
positions | Position information, may be null |
Tell the mapper what to expect in regards to field, number of terms, offset and position storage.
This method will be called once before retrieving the vector for a field.
This method will be called before map(String, int, TermVectorOffsetInfo[], int[])
.
field | The field the vector is for |
---|---|
numTerms | The number of terms that need to be mapped |
storeOffsets | true if the mapper should expect offset information |
storePositions | true if the mapper should expect positions info |