org.elasticsearch.cluster.metadata
Class MetaData
java.lang.Object
org.elasticsearch.cluster.metadata.MetaData
- All Implemented Interfaces:
- java.lang.Iterable<IndexMetaData>
@Immutable
public class MetaData
- extends java.lang.Object
- implements java.lang.Iterable<IndexMetaData>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_META_DATA
public static MetaData EMPTY_META_DATA
recoveredFromGateway
public boolean recoveredFromGateway()
- Has the cluster state been recovered from the gateway.
aliases
public org.elasticsearch.common.collect.ImmutableSet<java.lang.String> aliases()
getAliases
public org.elasticsearch.common.collect.ImmutableSet<java.lang.String> getAliases()
concreteAllIndices
public java.lang.String[] concreteAllIndices()
- Returns all the concrete indices.
getConcreteAllIndices
public java.lang.String[] getConcreteAllIndices()
concreteIndices
public java.lang.String[] concreteIndices(java.lang.String[] indices)
throws IndexMissingException
- Translates the provided indices (possibly aliased) into actual indices.
- Throws:
IndexMissingException
concreteIndex
public java.lang.String concreteIndex(java.lang.String index)
throws IndexMissingException,
ElasticSearchIllegalArgumentException
- Throws:
IndexMissingException
ElasticSearchIllegalArgumentException
hasIndex
public boolean hasIndex(java.lang.String index)
hasConcreteIndex
public boolean hasConcreteIndex(java.lang.String index)
index
public IndexMetaData index(java.lang.String index)
indices
public org.elasticsearch.common.collect.ImmutableMap<java.lang.String,IndexMetaData> indices()
getIndices
public org.elasticsearch.common.collect.ImmutableMap<java.lang.String,IndexMetaData> getIndices()
totalNumberOfShards
public int totalNumberOfShards()
getTotalNumberOfShards
public int getTotalNumberOfShards()
iterator
public org.elasticsearch.common.collect.UnmodifiableIterator<IndexMetaData> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<IndexMetaData>
builder
public static MetaData.Builder builder()
newMetaDataBuilder
public static MetaData.Builder newMetaDataBuilder()