org.elasticsearch.cluster.metadata
Class IndexTemplateMetaData.Builder

java.lang.Object
  extended by org.elasticsearch.cluster.metadata.IndexTemplateMetaData.Builder
Enclosing class:
IndexTemplateMetaData

public static class IndexTemplateMetaData.Builder
extends Object


Constructor Summary
IndexTemplateMetaData.Builder(IndexTemplateMetaData indexTemplateMetaData)
           
IndexTemplateMetaData.Builder(String name)
           
 
Method Summary
 IndexTemplateMetaData build()
           
static IndexTemplateMetaData fromXContent(XContentParser parser)
           
static IndexTemplateMetaData fromXContentStandalone(XContentParser parser)
           
 IndexMetaData.Custom getCustom(String type)
           
 IndexTemplateMetaData.Builder order(int order)
           
 IndexTemplateMetaData.Builder putCustom(String type, IndexMetaData.Custom customIndexMetaData)
           
 IndexTemplateMetaData.Builder putMapping(String mappingType, CompressedString mappingSource)
           
 IndexTemplateMetaData.Builder putMapping(String mappingType, String mappingSource)
           
static IndexTemplateMetaData readFrom(StreamInput in)
           
 IndexTemplateMetaData.Builder removeCustom(String type)
           
 IndexTemplateMetaData.Builder removeMapping(String mappingType)
           
 IndexTemplateMetaData.Builder settings(Settings.Builder settings)
           
 IndexTemplateMetaData.Builder settings(Settings settings)
           
 String template()
           
 IndexTemplateMetaData.Builder template(String template)
           
static void toXContent(IndexTemplateMetaData indexTemplateMetaData, XContentBuilder builder, ToXContent.Params params)
           
static void writeTo(IndexTemplateMetaData indexTemplateMetaData, StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexTemplateMetaData.Builder

public IndexTemplateMetaData.Builder(String name)

IndexTemplateMetaData.Builder

public IndexTemplateMetaData.Builder(IndexTemplateMetaData indexTemplateMetaData)
Method Detail

order

public IndexTemplateMetaData.Builder order(int order)

template

public IndexTemplateMetaData.Builder template(String template)

template

public String template()

settings

public IndexTemplateMetaData.Builder settings(Settings.Builder settings)

settings

public IndexTemplateMetaData.Builder settings(Settings settings)

removeMapping

public IndexTemplateMetaData.Builder removeMapping(String mappingType)

putMapping

public IndexTemplateMetaData.Builder putMapping(String mappingType,
                                                CompressedString mappingSource)
                                         throws IOException
Throws:
IOException

putMapping

public IndexTemplateMetaData.Builder putMapping(String mappingType,
                                                String mappingSource)
                                         throws IOException
Throws:
IOException

putCustom

public IndexTemplateMetaData.Builder putCustom(String type,
                                               IndexMetaData.Custom customIndexMetaData)

removeCustom

public IndexTemplateMetaData.Builder removeCustom(String type)

getCustom

public IndexMetaData.Custom getCustom(String type)

build

public IndexTemplateMetaData build()

toXContent

public static void toXContent(IndexTemplateMetaData indexTemplateMetaData,
                              XContentBuilder builder,
                              ToXContent.Params params)
                       throws IOException
Throws:
IOException

fromXContentStandalone

public static IndexTemplateMetaData fromXContentStandalone(XContentParser parser)
                                                    throws IOException
Throws:
IOException

fromXContent

public static IndexTemplateMetaData fromXContent(XContentParser parser)
                                          throws IOException
Throws:
IOException

readFrom

public static IndexTemplateMetaData readFrom(StreamInput in)
                                      throws IOException
Throws:
IOException

writeTo

public static void writeTo(IndexTemplateMetaData indexTemplateMetaData,
                           StreamOutput out)
                    throws IOException
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.