Class GroupByTimeParameter
- java.lang.Object
-
- org.apache.iotdb.db.mpp.plan.planner.plan.parameter.GroupByTimeParameter
-
public class GroupByTimeParameter extends java.lang.ObjectThe 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 Summary
Constructors Constructor Description GroupByTimeParameter()GroupByTimeParameter(long startTime, long endTime, long interval, long slidingStep, boolean leftCRightO)GroupByTimeParameter(long startTime, long endTime, long interval, long slidingStep, boolean isIntervalByMonth, boolean isSlidingStepByMonth, boolean leftCRightO)GroupByTimeParameter(GroupByTimeComponent groupByTimeComponent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GroupByTimeParameterdeserialize(java.nio.ByteBuffer buffer)booleanequals(java.lang.Object obj)longgetEndTime()longgetInterval()longgetSlidingStep()longgetStartTime()inthashCode()booleanhasOverlap()booleanisIntervalByMonth()booleanisLeftCRightO()booleanisSlidingStepByMonth()voidserialize(java.io.DataOutputStream stream)voidserialize(java.nio.ByteBuffer buffer)voidsetEndTime(long endTime)voidsetInterval(long interval)voidsetIntervalByMonth(boolean intervalByMonth)voidsetLeftCRightO(boolean leftCRightO)voidsetSlidingStep(long slidingStep)voidsetSlidingStepByMonth(boolean slidingStepByMonth)voidsetStartTime(long startTime)
-
-
-
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)
-
GroupByTimeParameter
public GroupByTimeParameter(GroupByTimeComponent groupByTimeComponent)
-
-
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
-
deserialize
public static GroupByTimeParameter deserialize(java.nio.ByteBuffer buffer)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-