public class PositionIncrementAttributeImpl extends AttributeImpl implements PositionIncrementAttribute, Cloneable, Serializable
TokenStream
, used in phrase
searching.
The default value is one.
Some common uses for this are:
enableBackwards
Constructor and Description |
---|
PositionIncrementAttributeImpl() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the values in this AttributeImpl and resets it to its
default value.
|
void |
copyTo(AttributeImpl target)
Copies the values from this Attribute into the passed-in
target attribute.
|
boolean |
equals(Object other) |
int |
getPositionIncrement()
Returns the position increment of this Token.
|
int |
hashCode() |
void |
setPositionIncrement(int positionIncrement)
Set the position increment.
|
clone, reflectAsString, reflectWith, toString
public void setPositionIncrement(int positionIncrement)
setPositionIncrement
in interface PositionIncrementAttribute
positionIncrement
- the distance from the prior termpublic int getPositionIncrement()
getPositionIncrement
in interface PositionIncrementAttribute
setPositionIncrement(int)
public void clear()
AttributeImpl
clear
in class AttributeImpl
public void copyTo(AttributeImpl target)
AttributeImpl
copyTo
in class AttributeImpl
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.