Class ICUCollatedTermAttributeImpl

java.lang.Object
org.apache.lucene.util.AttributeImpl
org.apache.lucene.analysis.tokenattributes.CharTermAttributeImpl
org.apache.lucene.analysis.icu.tokenattributes.ICUCollatedTermAttributeImpl
All Implemented Interfaces:
Appendable, CharSequence, Cloneable, org.apache.lucene.analysis.tokenattributes.CharTermAttribute, org.apache.lucene.analysis.tokenattributes.TermToBytesRefAttribute, org.apache.lucene.util.Attribute

public class ICUCollatedTermAttributeImpl extends org.apache.lucene.analysis.tokenattributes.CharTermAttributeImpl
Extension of CharTermAttributeImpl that encodes the term text as a binary Unicode collation key instead of as UTF-8 bytes.
  • Field Summary

    Fields inherited from class org.apache.lucene.analysis.tokenattributes.CharTermAttributeImpl

    builder
  • Constructor Summary

    Constructors
    Constructor
    Description
    ICUCollatedTermAttributeImpl(com.ibm.icu.text.Collator collator)
    Create a new ICUCollatedTermAttributeImpl
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.util.BytesRef
     

    Methods inherited from class org.apache.lucene.analysis.tokenattributes.CharTermAttributeImpl

    append, append, append, append, append, append, buffer, charAt, clear, clone, copyBuffer, copyTo, equals, hashCode, length, reflectWith, resizeBuffer, setEmpty, setLength, subSequence, toString

    Methods inherited from class org.apache.lucene.util.AttributeImpl

    end, reflectAsString

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.CharSequence

    chars, codePoints
  • Constructor Details

    • ICUCollatedTermAttributeImpl

      public ICUCollatedTermAttributeImpl(com.ibm.icu.text.Collator collator)
      Create a new ICUCollatedTermAttributeImpl
      Parameters:
      collator - Collation key generator
  • Method Details

    • getBytesRef

      public org.apache.lucene.util.BytesRef getBytesRef()
      Specified by:
      getBytesRef in interface org.apache.lucene.analysis.tokenattributes.TermToBytesRefAttribute
      Overrides:
      getBytesRef in class org.apache.lucene.analysis.tokenattributes.CharTermAttributeImpl