Package org.apache.lucene.tests.analysis
Class MockUTF16TermAttributeImpl
java.lang.Object
org.apache.lucene.util.AttributeImpl
org.apache.lucene.analysis.tokenattributes.CharTermAttributeImpl
org.apache.lucene.tests.analysis.MockUTF16TermAttributeImpl
- All Implemented Interfaces:
Appendable
,CharSequence
,Cloneable
,CharTermAttribute
,TermToBytesRefAttribute
,Attribute
Extension of
CharTermAttributeImpl
that encodes the term text as UTF-16 bytes instead of
as UTF-8 bytes.-
Field Summary
Modifier and TypeFieldDescriptionstatic final AttributeFactory
Factory that returns an instance of this class for CharTermAttributeFields inherited from class org.apache.lucene.analysis.tokenattributes.CharTermAttributeImpl
builder
-
Constructor Summary
-
Method Summary
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
-
Field Details
-
UTF16_TERM_ATTRIBUTE_FACTORY
Factory that returns an instance of this class for CharTermAttribute
-
-
Constructor Details
-
MockUTF16TermAttributeImpl
public MockUTF16TermAttributeImpl()
-
-
Method Details
-
getBytesRef
- Specified by:
getBytesRef
in interfaceTermToBytesRefAttribute
- Overrides:
getBytesRef
in classCharTermAttributeImpl
-