java.lang.Object
org.elasticsearch.index.mapper.XContentDataHelper
Helper class for processing field data of any type, as provided by the
XContentParser.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.lucene.util.BytesRefencodeXContentBuilder(XContentBuilder builder) Build aBytesRefwrapping a byte array containing an encoded form of the passed XContentBuilder contents.static XContentTypegetXContentType(org.apache.lucene.util.BytesRef r) Returns theXContentTypeto use for creating an XContentBuilder to decode the passed value.
-
Constructor Details
-
XContentDataHelper
public XContentDataHelper()
-
-
Method Details
-
encodeXContentBuilder
public static org.apache.lucene.util.BytesRef encodeXContentBuilder(XContentBuilder builder) throws IOException Build aBytesRefwrapping a byte array containing an encoded form of the passed XContentBuilder contents.- Throws:
IOException
-
getXContentType
Returns theXContentTypeto use for creating an XContentBuilder to decode the passed value.
-