org.elasticsearch.cluster.metadata
Class MetaData.Builder
java.lang.Object
org.elasticsearch.cluster.metadata.MetaData.Builder
- Enclosing class:
- MetaData
public static class MetaData.Builder
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaData.Builder
public MetaData.Builder()
put
public MetaData.Builder put(IndexMetaData.Builder indexMetaDataBuilder)
put
public MetaData.Builder put(IndexMetaData indexMetaData)
get
public IndexMetaData get(java.lang.String index)
remove
public MetaData.Builder remove(java.lang.String index)
metaData
public MetaData.Builder metaData(MetaData metaData)
updateNumberOfReplicas
public MetaData.Builder updateNumberOfReplicas(int numberOfReplicas,
java.lang.String... indices)
markAsRecoveredFromGateway
public MetaData.Builder markAsRecoveredFromGateway()
- Indicates that this cluster state has been recovered from the gateawy.
build
public MetaData build()
toXContent
public static java.lang.String toXContent(MetaData metaData)
throws java.io.IOException
- Throws:
java.io.IOException
toXContent
public static void toXContent(MetaData metaData,
XContentBuilder builder,
ToXContent.Params params)
throws java.io.IOException
- Throws:
java.io.IOException
fromXContent
public static MetaData fromXContent(XContentParser parser,
@Nullable
Settings globalSettings)
throws java.io.IOException
- Throws:
java.io.IOException
readFrom
public static MetaData readFrom(StreamInput in,
@Nullable
Settings globalSettings)
throws java.io.IOException
- Throws:
java.io.IOException
writeTo
public static void writeTo(MetaData metaData,
StreamOutput out)
throws java.io.IOException
- Throws:
java.io.IOException