Class Regexp<T extends java.lang.Comparable<T>>

  • Type Parameters:
    T - comparable data type
    All Implemented Interfaces:
    java.io.Serializable, Filter
    Direct Known Subclasses:
    ValueFilter.ValueRegexp

    public class Regexp<T extends java.lang.Comparable<T>>
    extends java.lang.Object
    implements Filter, java.io.Serializable
    Regexp.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected FilterType filterType  
      protected boolean not  
      protected java.util.regex.Pattern pattern  
      protected java.lang.String value  
    • Constructor Summary

      Constructors 
      Constructor Description
      Regexp()  
      Regexp​(java.lang.String value, FilterType filterType, boolean not)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean allSatisfy​(Statistics statistics)
      To examine whether all data points are satisfied with the filter.
      boolean containStartEndTime​(long startTime, long endTime)
      To examine whether the partition [startTime, endTime] is subsets of filter.
      Filter copy()  
      void deserialize​(java.nio.ByteBuffer buffer)  
      boolean equals​(java.lang.Object o)  
      FilterSerializeId getSerializeId()  
      int hashCode()  
      Filter reverse()  
      boolean satisfy​(long time, java.lang.Object value)
      To examine whether the single point(with time and value) is satisfied with the filter.
      boolean satisfy​(Statistics statistics)
      To examine whether there are data points satisfied with the filter.
      boolean satisfyStartEndTime​(long startTime, long endTime)
      To examine whether the min time and max time are satisfied with the filter.
      void serialize​(java.io.DataOutputStream outputStream)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • value

        protected java.lang.String value
      • pattern

        protected java.util.regex.Pattern pattern
      • not

        protected boolean not
    • Constructor Detail

      • Regexp

        public Regexp()
      • Regexp

        public Regexp​(java.lang.String value,
                      FilterType filterType,
                      boolean not)
    • Method Detail

      • 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
      • serialize

        public void serialize​(java.io.DataOutputStream outputStream)
        Specified by:
        serialize in interface Filter
      • deserialize

        public void deserialize​(java.nio.ByteBuffer buffer)
        Specified by:
        deserialize in interface Filter
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • 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