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 class
IndexTemplateMetaData.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(java.lang.String name, int order, java.lang.Integer version, java.util.List<java.lang.String> patterns, Settings settings, ImmutableOpenMap<java.lang.String,CompressedXContent> mappings, ImmutableOpenMap<java.lang.String,AliasMetaData> aliases)
-
Method Summary
Modifier and Type Method Description ImmutableOpenMap<java.lang.String,AliasMetaData>
aliases()
static IndexTemplateMetaData.Builder
builder(java.lang.String name)
boolean
equals(java.lang.Object o)
ImmutableOpenMap<java.lang.String,AliasMetaData>
getAliases()
ImmutableOpenMap<java.lang.String,CompressedXContent>
getMappings()
java.lang.String
getName()
int
getOrder()
java.lang.Integer
getVersion()
int
hashCode()
ImmutableOpenMap<java.lang.String,CompressedXContent>
mappings()
java.lang.String
name()
int
order()
java.util.List<java.lang.String>
patterns()
static Diff<IndexTemplateMetaData>
readDiffFrom(StreamInput in)
static IndexTemplateMetaData
readFrom(StreamInput in)
Settings
settings()
java.lang.Integer
version()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.
-
Constructor Details
-
IndexTemplateMetaData
public IndexTemplateMetaData(java.lang.String name, int order, java.lang.Integer version, java.util.List<java.lang.String> patterns, Settings settings, ImmutableOpenMap<java.lang.String,CompressedXContent> mappings, ImmutableOpenMap<java.lang.String,AliasMetaData> aliases)
-
-
Method Details
-
name
public java.lang.String name() -
order
public int order() -
getOrder
public int getOrder() -
getVersion
-
version
-
getName
public java.lang.String getName() -
patterns
public java.util.List<java.lang.String> patterns() -
settings
-
mappings
-
getMappings
-
aliases
-
getAliases
-
builder
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
readFrom
- Throws:
java.io.IOException
-
readDiffFrom
- Throws:
java.io.IOException
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Throws:
java.io.IOException
-