|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.index.FieldInvertState
public final class FieldInvertState
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.
Constructor Summary | |
---|---|
FieldInvertState(String name)
Creates {code FieldInvertState} for the specified field name. |
|
FieldInvertState(String name,
int position,
int length,
int numOverlap,
int offset,
float boost)
Creates {code FieldInvertState} for the specified field name and values for all fields. |
Method Summary | |
---|---|
AttributeSource |
getAttributeSource()
Returns the AttributeSource from the TokenStream that provided the indexed tokens for this
field. |
float |
getBoost()
Get boost value. |
int |
getLength()
Get total number of terms in this field. |
int |
getMaxTermFrequency()
Get the maximum term-frequency encountered for any term in the field. |
String |
getName()
Return the field's name |
int |
getNumOverlap()
Get the number of terms with positionIncrement == 0 . |
int |
getOffset()
Get end offset of the last processed term. |
int |
getPosition()
Get the last processed term position. |
int |
getUniqueTermCount()
Return the number of unique terms encountered in this field. |
void |
setBoost(float boost)
Set boost value. |
void |
setLength(int length)
Set length value. |
void |
setNumOverlap(int numOverlap)
Set number of terms with positionIncrement ==
0 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldInvertState(String name)
public FieldInvertState(String name, int position, int length, int numOverlap, int offset, float boost)
Method Detail |
---|
public int getPosition()
public int getLength()
public void setLength(int length)
public int getNumOverlap()
positionIncrement == 0
.
public void setNumOverlap(int numOverlap)
positionIncrement ==
0
.
public int getOffset()
public float getBoost()
public void setBoost(float boost)
public int getMaxTermFrequency()
public int getUniqueTermCount()
public AttributeSource getAttributeSource()
AttributeSource
from the TokenStream
that provided the indexed tokens for this
field.
public String getName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |