Class RollupGroup
java.lang.Object
org.elasticsearch.cluster.AbstractDiffable<RollupGroup>
org.elasticsearch.cluster.metadata.RollupGroup
- All Implemented Interfaces:
Diffable<RollupGroup>
,Writeable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
public class RollupGroup extends AbstractDiffable<RollupGroup> implements org.elasticsearch.common.xcontent.ToXContentObject
Object representing information about rollup-v2 indices and their respective original-indexes. These objects
also include information about their capabilities, like which date-intervals and date-timezones they are configured
with. Used by
RollupMetadata
.
The information in this class will be used to decide which index within the group
will be chosen
for a specific aggregation. For example, if there are two indices with different intervals (`1h`, `1d`) and
a date-histogram aggregation request is sent for daily intervals, then the index with the associated `1d` interval
will be chosen.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields Modifier and Type Field Description static org.elasticsearch.common.xcontent.ConstructingObjectParser<RollupGroup,java.lang.Void>
PARSER
-
Constructor Summary
Constructors Constructor Description RollupGroup()
RollupGroup(java.util.List<java.lang.String> group, java.util.Map<java.lang.String,DateHistogramInterval> dateInterval, java.util.Map<java.lang.String,WriteableZoneId> dateTimezone)
RollupGroup(StreamInput in)
-
Method Summary
Modifier and Type Method Description void
add(java.lang.String name, DateHistogramInterval interval, WriteableZoneId timezone)
boolean
contains(java.lang.String name)
boolean
equals(java.lang.Object o)
static RollupGroup
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
DateHistogramInterval
getDateInterval(java.lang.String name)
WriteableZoneId
getDateTimezone(java.lang.String name)
java.util.List<java.lang.String>
getIndices()
int
hashCode()
static RollupGroup
parse(org.elasticsearch.common.xcontent.XContentParser parser)
void
remove(java.lang.String name)
java.lang.String
toString()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
void
writeTo(StreamOutput out)
Write this into the StreamOutput.
-
Field Details
-
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<RollupGroup,java.lang.Void> PARSER
-
-
Constructor Details
-
RollupGroup
public RollupGroup(java.util.List<java.lang.String> group, java.util.Map<java.lang.String,DateHistogramInterval> dateInterval, java.util.Map<java.lang.String,WriteableZoneId> dateTimezone) -
RollupGroup
public RollupGroup() -
RollupGroup
- Throws:
java.io.IOException
-
-
Method Details
-
fromXContent
public static RollupGroup fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException- Throws:
java.io.IOException
-
add
-
remove
public void remove(java.lang.String name) -
contains
public boolean contains(java.lang.String name) -
getDateInterval
-
getDateTimezone
-
getIndices
public java.util.List<java.lang.String> getIndices() -
parse
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-