org.apache.lucene.collation.tokenattributes
Class ICUCollatedTermAttributeImpl

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

public class ICUCollatedTermAttributeImpl
extends CharTermAttributeImpl

Extension of CharTermAttributeImpl that encodes the term text as a binary Unicode collation key instead of as UTF-8 bytes.


Constructor Summary
ICUCollatedTermAttributeImpl(com.ibm.icu.text.Collator collator)
          Create a new ICUCollatedTermAttributeImpl
 
Method Summary
 int fillBytesRef()
           
 
Methods inherited from class org.apache.lucene.analysis.tokenattributes.CharTermAttributeImpl
append, append, append, append, append, append, buffer, charAt, clear, clone, copyBuffer, copyTo, equals, getBytesRef, hashCode, length, reflectWith, resizeBuffer, setEmpty, setLength, subSequence, toString
 
Methods inherited from class org.apache.lucene.util.AttributeImpl
reflectAsString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ICUCollatedTermAttributeImpl

public ICUCollatedTermAttributeImpl(com.ibm.icu.text.Collator collator)
Create a new ICUCollatedTermAttributeImpl

Parameters:
collator - Collation key generator
Method Detail

fillBytesRef

public int fillBytesRef()
Specified by:
fillBytesRef in interface TermToBytesRefAttribute
Overrides:
fillBytesRef in class CharTermAttributeImpl


Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.