Class ICUCollatedTermAttribute
Extension of Lucene.Net.Analysis.TokenAttributes.CharTermAttribute that encodes the term text as a binary Unicode collation key instead of as UTF-8 bytes.
Implements
ICharTermAttribute
ICharSequence
ITermToBytesRefAttribute
IAttribute
IAppendable
Inherited Members
CharTermAttribute.Buffer
CharTermAttribute.Length
CharTermAttribute.SetEmpty()
CharTermAttribute.BytesRef
CharTermAttribute.Append(ICharTermAttribute)
CharTermAttribute.GetHashCode()
CharTermAttribute.Clear()
CharTermAttribute.Clone()
CharTermAttribute.ToString()
CharTermAttribute.ReflectWith(IAttributeReflector)
CharTermAttribute.CopyTo(IAttribute)
Namespace: Lucene.Net.Collation.TokenAttributes
Assembly: Lucene.Net.ICU.dll
Syntax
public class ICUCollatedTermAttribute : CharTermAttribute, ICharTermAttribute, ICharSequence, ITermToBytesRefAttribute, IAttribute, IAppendable
Constructors
ICUCollatedTermAttribute(Collator)
Create a new ICUCollatedTermAttribute
Declaration
public ICUCollatedTermAttribute(Collator collator)
Parameters
Type | Name | Description |
---|---|---|
Collator | collator | Collation key generator. |
Methods
FillBytesRef()
Updates the bytes Lucene.Net.Util.BytesRef to contain this term's final encoding.
Declaration
public override void FillBytesRef()
Overrides
Lucene.Net.Analysis.TokenAttributes.CharTermAttribute.FillBytesRef()
Implements
Lucene.Net.Analysis.TokenAttributes.ICharTermAttribute
J2N.Text.ICharSequence
Lucene.Net.Analysis.TokenAttributes.ITermToBytesRefAttribute
Lucene.Net.Util.IAttribute
J2N.Text.IAppendable