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  

    Fields 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
    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.

    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.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

      public RollupGroup​(StreamInput in) throws java.io.IOException
      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

      public void add​(java.lang.String name, DateHistogramInterval interval, WriteableZoneId timezone)
    • remove

      public void remove​(java.lang.String name)
    • contains

      public boolean contains​(java.lang.String name)
    • getDateInterval

      public DateHistogramInterval getDateInterval​(java.lang.String name)
    • getDateTimezone

      public WriteableZoneId getDateTimezone​(java.lang.String name)
    • getIndices

      public java.util.List<java.lang.String> getIndices()
    • parse

      public static RollupGroup parse​(org.elasticsearch.common.xcontent.XContentParser parser)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      java.io.IOException
    • 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 interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
      java.io.IOException
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object