Class OrFilter

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

    public class OrFilter
    extends BinaryFilter
    implements java.io.Serializable
    Either of the left and right operators of AndExpression must satisfy the condition.
    See Also:
    Serialized Form
    • Constructor Detail

      • OrFilter

        public OrFilter()
    • Method Detail

      • toString

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

        public boolean satisfy​(Statistics statistics)
        Description copied from interface: Filter
        To examine whether there are data points satisfied with the filter.
        Specified by:
        satisfy in interface Filter
        Parameters:
        statistics - statistics with min time, max time, min value, max value.
      • allSatisfy

        public boolean allSatisfy​(Statistics statistics)
        Description copied from interface: Filter
        To examine whether all data points are satisfied with the filter.
        Specified by:
        allSatisfy in interface Filter
        Parameters:
        statistics - statistics with min time, max time, min value, max value.
      • 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
        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
        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
        Parameters:
        startTime - start time of a partition
        endTime - end time of a partition