|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PositionLengthAttribute
Determines how many positions this token spans. Very few analyzer components actually produce this attribute, and indexing ignores it, but it's useful to express the graph structure naturally produced by decompounding, word splitting/joining, synonym filtering, etc.
NOTE: this is optional, and most analyzers don't change the default value (1).
Method Summary | |
---|---|
int |
getPositionLength()
Returns the position length of this Token. |
void |
setPositionLength(int positionLength)
Set the position length of this Token. |
Method Detail |
---|
void setPositionLength(int positionLength)
The default value is one.
positionLength
- how many positions this token
spans.
IllegalArgumentException
- if positionLength
is zero or negative.getPositionLength()
int getPositionLength()
setPositionLength(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |