Class Text

All Implemented Interfaces:
java.lang.Comparable<Text>, ToXContent, ToXContentFragment

public final class Text
extends java.lang.Object
implements java.lang.Comparable<Text>, ToXContentFragment
Both String and BytesReference representation of the text. Starts with one of those, and if the other is requests, caches the other one in a local reference so no additional conversion will be needed.