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.util.List<java.lang.String>
getPatterns()
Settings
getSettings()
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.-
Methods inherited from class org.elasticsearch.cluster.AbstractDiffable
diff, get, readDiffFrom
-
-
-
-
Constructor Detail
-
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 Detail
-
name
public java.lang.String name()
-
order
public int order()
-
getOrder
public int getOrder()
-
getVersion
@Nullable public java.lang.Integer getVersion()
-
version
@Nullable public java.lang.Integer version()
-
getName
public java.lang.String getName()
-
patterns
public java.util.List<java.lang.String> patterns()
-
getPatterns
public java.util.List<java.lang.String> getPatterns()
-
settings
public Settings settings()
-
getSettings
public Settings getSettings()
-
mappings
public ImmutableOpenMap<java.lang.String,CompressedXContent> mappings()
-
getMappings
public ImmutableOpenMap<java.lang.String,CompressedXContent> getMappings()
-
aliases
public ImmutableOpenMap<java.lang.String,AliasMetaData> aliases()
-
getAliases
public ImmutableOpenMap<java.lang.String,AliasMetaData> getAliases()
-
builder
public static IndexTemplateMetaData.Builder builder(java.lang.String name)
-
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
public static IndexTemplateMetaData readFrom(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
readDiffFrom
public static Diff<IndexTemplateMetaData> readDiffFrom(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Writeable
Write this into the StreamOutput.- Throws:
java.io.IOException
-
-