java.lang.Object | ||
↳ | org.apache.lucene.index.TermVectorMapper | |
↳ | org.apache.lucene.index.FieldSortedTermVectorMapper |
For each Field, store a sorted collection of TermVectorEntry
s
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the mapping between fields and terms, sorted by the comparator
| |||||||||||
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
|
comparator | A Comparator for sorting TermVectorEntry s
|
---|
Get the mapping between fields and terms, sorted by the comparator
SortedSet
s per field. SortedSet entries are TermVectorEntry
Map the Term Vector information into your own structure
term | The term to add to the vector |
---|---|
frequency | The frequency of the term in the document |
offsets | null if the offset is not specified, otherwise the offset into the field of the term |
positions | null if the position is not specified, otherwise the position in the field of the term |
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 |