Class ComposableIndexTemplate
java.lang.Object
org.elasticsearch.cluster.metadata.ComposableIndexTemplate
- All Implemented Interfaces:
Diffable<ComposableIndexTemplate>,SimpleDiffable<ComposableIndexTemplate>,Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class ComposableIndexTemplate
extends Object
implements SimpleDiffable<ComposableIndexTemplate>, org.elasticsearch.xcontent.ToXContentObject
An index template is comprised of a set of index patterns, an optional template, and a list of
ids corresponding to component templates that should be composed in order when creating a new
index.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface org.elasticsearch.cluster.SimpleDiffable
SimpleDiffable.CompleteDiff<T extends Diffable<T>>Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ConstructingObjectParser<ComposableIndexTemplate,Void> Fields inherited from interface org.elasticsearch.cluster.SimpleDiffable
EMPTYFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionComposableIndexTemplate(List<String> indexPatterns, Template template, List<String> componentTemplates, Long priority, Long version, Map<String, Object> metadata) ComposableIndexTemplate(List<String> indexPatterns, Template template, List<String> componentTemplates, Long priority, Long version, Map<String, Object> metadata, ComposableIndexTemplate.DataStreamTemplate dataStreamTemplate) ComposableIndexTemplate(List<String> indexPatterns, Template template, List<String> componentTemplates, Long priority, Long version, Map<String, Object> metadata, ComposableIndexTemplate.DataStreamTemplate dataStreamTemplate, Boolean allowAutoCreate) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()metadata()static ComposableIndexTemplateparse(org.elasticsearch.xcontent.XContentParser parser) priority()longtemplate()toString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) version()voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.cluster.SimpleDiffable
diffMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<ComposableIndexTemplate,Void> PARSER
-
-
Constructor Details
-
ComposableIndexTemplate
-
ComposableIndexTemplate
-
ComposableIndexTemplate
public ComposableIndexTemplate(List<String> indexPatterns, @Nullable Template template, @Nullable List<String> componentTemplates, @Nullable Long priority, @Nullable Long version, @Nullable Map<String, Object> metadata, @Nullable ComposableIndexTemplate.DataStreamTemplate dataStreamTemplate, @Nullable Boolean allowAutoCreate) -
ComposableIndexTemplate
- Throws:
IOException
-
-
Method Details
-
parse
public static ComposableIndexTemplate parse(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
indexPatterns
-
template
-
composedOf
-
priority
-
priorityOrZero
public long priorityOrZero() -
version
-
metadata
-
getDataStreamTemplate
-
getAllowAutoCreate
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
toString
-