public static class MetaData.Builder
extends java.lang.Object
public Builder()
public Builder(MetaData metaData)
public MetaData.Builder put(IndexMetaData.Builder indexMetaDataBuilder)
public MetaData.Builder put(IndexMetaData indexMetaData, boolean incrementVersion)
public IndexMetaData get(java.lang.String index)
public IndexMetaData getSafe(Index index)
public MetaData.Builder remove(java.lang.String index)
public MetaData.Builder removeAllIndices()
public MetaData.Builder indices(ImmutableOpenMap<java.lang.String,IndexMetaData> indices)
public MetaData.Builder put(IndexTemplateMetaData.Builder template)
public MetaData.Builder put(IndexTemplateMetaData template)
public MetaData.Builder removeTemplate(java.lang.String templateName)
public MetaData.Builder templates(ImmutableOpenMap<java.lang.String,IndexTemplateMetaData> templates)
public MetaData.Custom getCustom(java.lang.String type)
public MetaData.Builder putCustom(java.lang.String type, MetaData.Custom custom)
public MetaData.Builder removeCustom(java.lang.String type)
public MetaData.Builder customs(ImmutableOpenMap<java.lang.String,MetaData.Custom> customs)
public MetaData.Builder indexGraveyard(IndexGraveyard indexGraveyard)
public IndexGraveyard indexGraveyard()
public MetaData.Builder updateSettings(Settings settings, java.lang.String... indices)
public MetaData.Builder updateNumberOfReplicas(int numberOfReplicas, java.lang.String... indices)
public Settings transientSettings()
public MetaData.Builder transientSettings(Settings settings)
public Settings persistentSettings()
public MetaData.Builder persistentSettings(Settings settings)
public MetaData.Builder version(long version)
public MetaData.Builder clusterUUID(java.lang.String clusterUUID)
public MetaData.Builder generateClusterUuidIfNeeded()
public MetaData build()
public static java.lang.String toXContent(MetaData metaData) throws java.io.IOException
java.io.IOException
public static void toXContent(MetaData metaData, XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException
public static MetaData fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOException