Class Text

All Implemented Interfaces:
Comparable<Text>, ToXContent, ToXContentFragment

public final class Text extends Object implements 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.