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 Details

    • numPriorUsesInASequence

      protected short numPriorUsesInASequence
  • Constructor Details

    • DuplicateSequenceAttributeImpl

      public DuplicateSequenceAttributeImpl()
  • Method Details

    • clear

      public void clear()
      Specified by:
      clear in class org.apache.lucene.util.AttributeImpl
    • copyTo

      public void copyTo(org.apache.lucene.util.AttributeImpl target)
      Specified by:
      copyTo in class org.apache.lucene.util.AttributeImpl
    • getNumPriorUsesInASequence

      public short getNumPriorUsesInASequence()
      Specified by:
      getNumPriorUsesInASequence in interface DuplicateSequenceAttribute
      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 interface DuplicateSequenceAttribute
    • reflectWith

      public void reflectWith(org.apache.lucene.util.AttributeReflector reflector)
      Specified by:
      reflectWith in class org.apache.lucene.util.AttributeImpl