This class tracks the number and position / offset parameters of terms being added to the index. The information collected in this class is also used to calculate the normalization factor for a field.
More...
#include <FieldInvertState.h>
This class tracks the number and position / offset parameters of terms being added to the index. The information collected in this class is also used to calculate the normalization factor for a field.
◆ FieldInvertState()
Lucene::FieldInvertState::FieldInvertState |
( |
int32_t |
position = 0 , |
|
|
int32_t |
length = 0 , |
|
|
int32_t |
numOverlap = 0 , |
|
|
int32_t |
offset = 0 , |
|
|
double |
boost = 0 |
|
) |
| |
◆ ~FieldInvertState()
virtual Lucene::FieldInvertState::~FieldInvertState |
( |
| ) |
|
|
virtual |
◆ _getClassName()
static String Lucene::FieldInvertState::_getClassName |
( |
| ) |
|
|
inlinestatic |
◆ getAttributeSource()
◆ getBoost()
double Lucene::FieldInvertState::getBoost |
( |
| ) |
|
Get boost value. This is the cumulative product of document boost and field boost for all field instances sharing the same field name.
- Returns
- the boost
◆ getClassName()
virtual String Lucene::FieldInvertState::getClassName |
( |
| ) |
|
|
inlinevirtual |
◆ getLength()
int32_t Lucene::FieldInvertState::getLength |
( |
| ) |
|
Get total number of terms in this field.
- Returns
- the length
◆ getNumOverlap()
int32_t Lucene::FieldInvertState::getNumOverlap |
( |
| ) |
|
Get the number of terms with positionIncrement == 0.
- Returns
- the numOverlap
◆ getOffset()
int32_t Lucene::FieldInvertState::getOffset |
( |
| ) |
|
Get end offset of the last processed term.
- Returns
- the offset
◆ getPosition()
int32_t Lucene::FieldInvertState::getPosition |
( |
| ) |
|
Get the last processed term position.
- Returns
- the position
◆ reset()
void Lucene::FieldInvertState::reset |
( |
double |
docBoost | ) |
|
Re-initialize the state, using this boost value.
- Parameters
-
docBoost | boost value to use. |
◆ shared_from_this()
boost::shared_ptr< FieldInvertState > Lucene::FieldInvertState::shared_from_this |
( |
| ) |
|
|
inline |
◆ __pad0__
INTERNAL Lucene::FieldInvertState::__pad0__ |
◆ attributeSource
◆ boost
double Lucene::FieldInvertState::boost |
◆ length
int32_t Lucene::FieldInvertState::length |
◆ numOverlap
int32_t Lucene::FieldInvertState::numOverlap |
◆ offset
int32_t Lucene::FieldInvertState::offset |
The documentation for this class was generated from the following file: