Class IndexTemplateMetaData
- java.lang.Object
-
- org.elasticsearch.cluster.AbstractDiffable<IndexTemplateMetaData>
-
- org.elasticsearch.cluster.metadata.IndexTemplateMetaData
-
- All Implemented Interfaces:
Diffable<IndexTemplateMetaData>,Writeable
public class IndexTemplateMetaData extends AbstractDiffable<IndexTemplateMetaData>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIndexTemplateMetaData.Builder-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Constructor Summary
Constructors Constructor Description IndexTemplateMetaData(String name, int order, Integer version, List<String> patterns, Settings settings, ImmutableOpenMap<String,CompressedXContent> mappings, ImmutableOpenMap<String,AliasMetaData> aliases)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableOpenMap<String,AliasMetaData>aliases()static IndexTemplateMetaData.Builderbuilder(String name)booleanequals(Object o)ImmutableOpenMap<String,AliasMetaData>getAliases()ImmutableOpenMap<String,CompressedXContent>getMappings()StringgetName()intgetOrder()IntegergetVersion()inthashCode()ImmutableOpenMap<String,CompressedXContent>mappings()Stringname()intorder()List<String>patterns()static Diff<IndexTemplateMetaData>readDiffFrom(StreamInput in)static IndexTemplateMetaDatareadFrom(StreamInput in)Settingssettings()Integerversion()voidwriteTo(StreamOutput out)Write this into the StreamOutput.-
Methods inherited from class org.elasticsearch.cluster.AbstractDiffable
diff, get, readDiffFrom
-
-
-
-
Constructor Detail
-
IndexTemplateMetaData
public IndexTemplateMetaData(String name, int order, Integer version, List<String> patterns, Settings settings, ImmutableOpenMap<String,CompressedXContent> mappings, ImmutableOpenMap<String,AliasMetaData> aliases)
-
-
Method Detail
-
name
public String name()
-
order
public int order()
-
getOrder
public int getOrder()
-
getName
public String getName()
-
settings
public Settings settings()
-
mappings
public ImmutableOpenMap<String,CompressedXContent> mappings()
-
getMappings
public ImmutableOpenMap<String,CompressedXContent> getMappings()
-
aliases
public ImmutableOpenMap<String,AliasMetaData> aliases()
-
getAliases
public ImmutableOpenMap<String,AliasMetaData> getAliases()
-
builder
public static IndexTemplateMetaData.Builder builder(String name)
-
readFrom
public static IndexTemplateMetaData readFrom(StreamInput in) throws IOException
- Throws:
IOException
-
readDiffFrom
public static Diff<IndexTemplateMetaData> readDiffFrom(StreamInput in) throws IOException
- Throws:
IOException
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Throws:
IOException
-
-