public class ContentBuilderUtil extends Object
XContentBuilder| Modifier and Type | Method and Description | 
|---|---|
| static void | addComplexField(org.elasticsearch.common.xcontent.XContentBuilder builder,
               String fieldName,
               org.elasticsearch.common.xcontent.XContentType contentType,
               byte[] data) | 
| static void | addSimpleField(org.elasticsearch.common.xcontent.XContentBuilder builder,
              String fieldName,
              byte[] data) | 
| static void | appendField(org.elasticsearch.common.xcontent.XContentBuilder builder,
           String field,
           byte[] data) | 
public static void appendField(org.elasticsearch.common.xcontent.XContentBuilder builder,
                               String field,
                               byte[] data)
                        throws IOException
IOExceptionpublic static void addSimpleField(org.elasticsearch.common.xcontent.XContentBuilder builder,
                                  String fieldName,
                                  byte[] data)
                           throws IOException
IOExceptionpublic static void addComplexField(org.elasticsearch.common.xcontent.XContentBuilder builder,
                                   String fieldName,
                                   org.elasticsearch.common.xcontent.XContentType contentType,
                                   byte[] data)
                            throws IOException
IOExceptionCopyright © 2009-2017 Apache Software Foundation. All Rights Reserved.