Class AscTimeComparator
- java.lang.Object
-
- org.apache.iotdb.db.mpp.execution.operator.process.join.merge.AscTimeComparator
-
- All Implemented Interfaces:
TimeComparator
public class AscTimeComparator extends java.lang.Object implements TimeComparator
-
-
Constructor Summary
Constructors Constructor Description AscTimeComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCurrentEndTime(long time1, long time2)booleansatisfyCurEndTime(long time, long endTime)
-
-
-
Method Detail
-
satisfyCurEndTime
public boolean satisfyCurEndTime(long time, long endTime)- Specified by:
satisfyCurEndTimein interfaceTimeComparator- Returns:
- if order by time asc, return true if time <= endTime, otherwise false
-
getCurrentEndTime
public long getCurrentEndTime(long time1, long time2)- Specified by:
getCurrentEndTimein interfaceTimeComparator- Returns:
- min(time1, time2) if order by time asc, max(time1, time2) if order by desc
-
-