Class ComposableIndexTemplate
java.lang.Object
org.elasticsearch.cluster.AbstractDiffable<ComposableIndexTemplate>
org.elasticsearch.cluster.metadata.ComposableIndexTemplate
- All Implemented Interfaces:
Diffable<ComposableIndexTemplate>
,Writeable
,ToXContent
,ToXContentObject
public class ComposableIndexTemplate
extends AbstractDiffable<ComposableIndexTemplate>
implements 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
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ConstructingObjectParser<ComposableIndexTemplate,
Void> Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionComposableIndexTemplate
(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 TypeMethodDescriptionboolean
int
hashCode()
metadata()
static ComposableIndexTemplate
parse
(XContentParser parser) priority()
long
template()
toString()
toXContent
(XContentBuilder builder, ToXContent.Params params) version()
void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.cluster.AbstractDiffable
diff, readDiffFrom
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
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
- Throws:
IOException
-
indexPatterns
-
template
-
composedOf
-
priority
-
priorityOrZero
public long priorityOrZero() -
version
-
metadata
-
getDataStreamTemplate
-
getAllowAutoCreate
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
toString
-