public class CollatedTermAttributeImpl extends CharTermAttributeImpl
CharTermAttributeImpl that encodes the term
text as a binary Unicode collation key instead of as UTF-8 bytes.| Modifier and Type | Field and Description |
|---|---|
private java.text.Collator |
collator |
builder| Constructor and Description |
|---|
CollatedTermAttributeImpl(java.text.Collator collator)
Create a new CollatedTermAttributeImpl
|
| 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, toStringend, reflectAsStringpublic CollatedTermAttributeImpl(java.text.Collator collator)
collator - Collation key generatorpublic BytesRef getBytesRef()
TermToBytesRefAttributegetBytesRef in interface TermToBytesRefAttributegetBytesRef in class CharTermAttributeImpl