Class BytesTermAttributeImpl

    • Constructor Detail

      • BytesTermAttributeImpl

        public BytesTermAttributeImpl()
        Initialize this attribute with no bytes.
    • Method Detail

      • getBytesRef

        public BytesRef getBytesRef()
        Description copied from interface: TermToBytesRefAttribute
        Retrieve this attribute's BytesRef. The bytes are updated from the current term. The implementation may return a new instance or keep the previous one.
        Specified by:
        getBytesRef in interface TermToBytesRefAttribute
        Returns:
        a BytesRef to be indexed (only stays valid until token stream gets incremented)
      • clear

        public void clear()
        Description copied from class: AttributeImpl
        Clears the values in this AttributeImpl and resets it to its default value. If this implementation implements more than one Attribute interface it clears all.
        Specified by:
        clear in class AttributeImpl
      • copyTo

        public void copyTo​(AttributeImpl target)
        Description copied from class: AttributeImpl
        Copies the values from this Attribute into the passed-in target attribute. The target implementation must support all the Attributes this implementation supports.
        Specified by:
        copyTo in class AttributeImpl
      • clone

        public AttributeImpl clone()
        Description copied from class: AttributeImpl
        In most cases the clone is, and should be, deep in order to be able to properly capture the state of all attributes.
        Overrides:
        clone in class AttributeImpl
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object