Class GroupByTimeParameter


  • public class GroupByTimeParameter
    extends java.lang.Object
    The parameter of `GROUP BY TIME`.

    Remember: interval and slidingStep is always in timestamp unit before transforming to timeRangeIterator even if it's by month unit.

    • Constructor Detail

      • GroupByTimeParameter

        public GroupByTimeParameter()
      • GroupByTimeParameter

        public GroupByTimeParameter​(long startTime,
                                    long endTime,
                                    long interval,
                                    long slidingStep,
                                    boolean leftCRightO)
      • GroupByTimeParameter

        public GroupByTimeParameter​(long startTime,
                                    long endTime,
                                    long interval,
                                    long slidingStep,
                                    boolean isIntervalByMonth,
                                    boolean isSlidingStepByMonth,
                                    boolean leftCRightO)
    • Method Detail

      • getStartTime

        public long getStartTime()
      • setStartTime

        public void setStartTime​(long startTime)
      • getEndTime

        public long getEndTime()
      • setEndTime

        public void setEndTime​(long endTime)
      • getInterval

        public long getInterval()
      • setInterval

        public void setInterval​(long interval)
      • getSlidingStep

        public long getSlidingStep()
      • setSlidingStep

        public void setSlidingStep​(long slidingStep)
      • isIntervalByMonth

        public boolean isIntervalByMonth()
      • setIntervalByMonth

        public void setIntervalByMonth​(boolean intervalByMonth)
      • isSlidingStepByMonth

        public boolean isSlidingStepByMonth()
      • setSlidingStepByMonth

        public void setSlidingStepByMonth​(boolean slidingStepByMonth)
      • isLeftCRightO

        public boolean isLeftCRightO()
      • setLeftCRightO

        public void setLeftCRightO​(boolean leftCRightO)
      • hasOverlap

        public boolean hasOverlap()
      • serialize

        public void serialize​(java.nio.ByteBuffer buffer)
      • serialize

        public void serialize​(java.io.DataOutputStream stream)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • equals

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

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