Class GroupByMonthFilter

  • All Implemented Interfaces:
    java.io.Serializable, Filter

    public class GroupByMonthFilter
    extends GroupByFilter
    GroupByMonthFilter is used to handle natural month slidingStep and interval by generating dynamically. Attention: it's only supported to access in ascending order now.
    See Also:
    Serialized Form
    • Constructor Detail

      • GroupByMonthFilter

        public GroupByMonthFilter()
      • GroupByMonthFilter

        public GroupByMonthFilter​(long interval,
                                  long slidingStep,
                                  long startTime,
                                  long endTime,
                                  boolean isSlidingStepByMonth,
                                  boolean isIntervalByMonth,
                                  java.util.TimeZone timeZone)
    • Method Detail

      • satisfy

        public boolean satisfy​(long time,
                               java.lang.Object value)
        Description copied from interface: Filter
        To examine whether the single point(with time and value) is satisfied with the filter.
        Specified by:
        satisfy in interface Filter
        Overrides:
        satisfy in class GroupByFilter
        Parameters:
        time - single point time
        value - single point value
      • satisfyStartEndTime

        public boolean satisfyStartEndTime​(long startTime,
                                           long endTime)
        Description copied from interface: Filter
        To examine whether the min time and max time are satisfied with the filter.
        Specified by:
        satisfyStartEndTime in interface Filter
        Overrides:
        satisfyStartEndTime in class GroupByFilter
        Parameters:
        startTime - start time of a page, series or device
        endTime - end time of a page, series or device
      • containStartEndTime

        public boolean containStartEndTime​(long startTime,
                                           long endTime)
        Description copied from interface: Filter
        To examine whether the partition [startTime, endTime] is subsets of filter.
        Specified by:
        containStartEndTime in interface Filter
        Overrides:
        containStartEndTime in class GroupByFilter
        Parameters:
        startTime - start time of a partition
        endTime - end time of a partition
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class GroupByFilter