|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.common.text.BytesText
public class BytesText
A BytesReference
representation of the text, will always convert on the fly to a String
.
Constructor Summary | |
---|---|
BytesText(BytesReference bytes)
|
Method Summary | |
---|---|
BytesReference |
bytes()
The UTF8 bytes representing the the text, might be converted on the fly, see Text.hasBytes() |
boolean |
hasBytes()
Are bytes available without the need to be converted into bytes when calling Text.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BytesText(BytesReference bytes)
Method Detail |
---|
public boolean hasBytes()
Text
Text.bytes()
.
hasBytes
in interface Text
public BytesReference bytes()
Text
Text.hasBytes()
bytes
in interface Text
public boolean hasString()
Text
String
representation of the text. If not, then it Text.hasBytes()
.
hasString
in interface Text
public String string()
Text
string
in interface Text
public String toString()
Text
toString
in interface Text
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |