Class DuplicateSequenceAttributeImpl
java.lang.Object
org.apache.lucene.util.AttributeImpl
org.apache.lucene.analysis.miscellaneous.DuplicateSequenceAttributeImpl
- All Implemented Interfaces:
Cloneable
,DuplicateSequenceAttribute
,org.apache.lucene.util.Attribute
public class DuplicateSequenceAttributeImpl
extends org.apache.lucene.util.AttributeImpl
implements DuplicateSequenceAttribute
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
copyTo(org.apache.lucene.util.AttributeImpl target)
short
void
reflectWith(org.apache.lucene.util.AttributeReflector reflector)
void
setNumPriorUsesInASequence(short len)
Methods inherited from class org.apache.lucene.util.AttributeImpl
clone, end, reflectAsString
-
Field Details
-
numPriorUsesInASequence
protected short numPriorUsesInASequence
-
-
Constructor Details
-
DuplicateSequenceAttributeImpl
public DuplicateSequenceAttributeImpl()
-
-
Method Details
-
clear
public void clear()- Specified by:
clear
in classorg.apache.lucene.util.AttributeImpl
-
copyTo
public void copyTo(org.apache.lucene.util.AttributeImpl target)- Specified by:
copyTo
in classorg.apache.lucene.util.AttributeImpl
-
getNumPriorUsesInASequence
public short getNumPriorUsesInASequence()- Specified by:
getNumPriorUsesInASequence
in interfaceDuplicateSequenceAttribute
- Returns:
- The number of times this token has been seen previously as part of a sequence (counts to a max of 255)
-
setNumPriorUsesInASequence
public void setNumPriorUsesInASequence(short len)- Specified by:
setNumPriorUsesInASequence
in interfaceDuplicateSequenceAttribute
-
reflectWith
public void reflectWith(org.apache.lucene.util.AttributeReflector reflector)- Specified by:
reflectWith
in classorg.apache.lucene.util.AttributeImpl
-