public interface PositionLengthAttribute extends Attribute
NOTE: this is optional, and most analyzers don't change the default value (1).
Modifier and Type | Method and Description |
---|---|
int |
getPositionLength()
Returns the position length of this Token.
|
void |
setPositionLength(int positionLength)
Set the position length of this Token.
|
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)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.