public class ICUCollatedTermAttributeImpl extends CharTermAttributeImpl
CharTermAttributeImpl
that encodes the term
text as a binary Unicode collation key instead of as UTF-8 bytes.builder
Constructor and Description |
---|
ICUCollatedTermAttributeImpl(Collator collator)
Create a new ICUCollatedTermAttributeImpl
|
Modifier and Type | Method and Description |
---|---|
BytesRef |
getBytesRef()
Retrieve this attribute's BytesRef.
|
append, append, append, append, append, append, buffer, charAt, clear, clone, copyBuffer, copyTo, equals, hashCode, length, reflectWith, resizeBuffer, setEmpty, setLength, subSequence, toString
end, reflectAsString
finalize, getClass, notify, notifyAll, wait, wait, wait
chars, codePoints
public ICUCollatedTermAttributeImpl(Collator collator)
collator
- Collation key generatorpublic BytesRef getBytesRef()
TermToBytesRefAttribute
getBytesRef
in interface TermToBytesRefAttribute
getBytesRef
in class CharTermAttributeImpl