public interface Text extends Comparable<Text>, Serializable
String
so we can represent it in a more optimized manner in memory as well as serializing it over the
network as well as converting it to json format.| Modifier and Type | Method and Description |
|---|---|
BytesReference |
bytes()
The UTF8 bytes representing the the text, might be converted on the fly, see
hasBytes() |
boolean |
hasBytes()
Are bytes available without the need to be converted into bytes when calling
bytes(). |
boolean |
hasString()
Is there a
String representation of the text. |
String |
string()
Returns the string representation of the text, might be converted to a string on the fly.
|
String |
toString()
Returns the string representation of the text, might be converted to a string on the fly.
|
compareToboolean hasBytes()
bytes().BytesReference bytes()
hasBytes()boolean hasString()
String representation of the text. If not, then it hasBytes().String string()
Copyright © 2009–2016. All rights reserved.