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
FieldsModifier and TypeFieldDescriptionstatic final AttributeFactoryFactory that returns an instance of this class for CharTermAttributeFields inherited from class org.apache.lucene.analysis.tokenattributes.CharTermAttributeImpl
builder -
Constructor Summary
Constructors -
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, toStringMethods inherited from class org.apache.lucene.util.AttributeImpl
end, reflectAsStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
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:
getBytesRefin interfaceTermToBytesRefAttribute- Overrides:
getBytesRefin classCharTermAttributeImpl
-