public class MockUTF16TermAttributeImpl extends CharTermAttributeImpl
CharTermAttributeImpl that encodes the term
text as UTF-16 bytes instead of as UTF-8 bytes.| Modifier and Type | Field and Description |
|---|---|
static AttributeFactory |
UTF16_TERM_ATTRIBUTE_FACTORY
Factory that returns an instance of this class for CharTermAttribute
|
builder| Constructor and Description |
|---|
MockUTF16TermAttributeImpl() |
| Modifier and Type | Method and Description |
|---|---|
BytesRef |
getBytesRef() |
append, append, append, append, append, append, buffer, charAt, clear, clone, copyBuffer, copyTo, equals, hashCode, length, reflectWith, resizeBuffer, setEmpty, setLength, subSequence, toStringreflectAsStringfinalize, getClass, notify, notifyAll, wait, wait, waitchars, codePointspublic static final AttributeFactory UTF16_TERM_ATTRIBUTE_FACTORY
public BytesRef getBytesRef()
getBytesRef in interface TermToBytesRefAttributegetBytesRef in class CharTermAttributeImplCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.