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.ParamsNested 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>PARSERFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
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 voidadd(java.lang.String name, DateHistogramInterval interval, WriteableZoneId timezone)booleancontains(java.lang.String name)booleanequals(java.lang.Object o)static RollupGroupfromXContent(org.elasticsearch.common.xcontent.XContentParser parser)DateHistogramIntervalgetDateInterval(java.lang.String name)WriteableZoneIdgetDateTimezone(java.lang.String name)java.util.List<java.lang.String>getIndices()inthashCode()static RollupGroupparse(org.elasticsearch.common.xcontent.XContentParser parser)voidremove(java.lang.String name)java.lang.StringtoString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.cluster.AbstractDiffable
diff, readDiffFromMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
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:
toStringin classjava.lang.Object
-
writeTo
Description copied from interface:WriteableWrite 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:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-