org.elasticsearch.cluster.metadata
Class IndexTemplateMetaData.Builder
java.lang.Object
org.elasticsearch.cluster.metadata.IndexTemplateMetaData.Builder
- Enclosing class:
- IndexTemplateMetaData
public static class IndexTemplateMetaData.Builder
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexTemplateMetaData.Builder
public IndexTemplateMetaData.Builder(String name)
IndexTemplateMetaData.Builder
public IndexTemplateMetaData.Builder(IndexTemplateMetaData indexTemplateMetaData)
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.