HTHou commented on code in PR #14265:
URL: https://github.com/apache/iotdb/pull/14265#discussion_r1866983823


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/TimLongTVList.java:
##########
@@ -114,9 +114,9 @@ public void reverseRange(int lo, int hi) {
     hi--;
     while (lo < hi) {
       long loT = getTime(lo);
-      long loV = getLong(lo);
+      int loV = getValueIndex(lo);
       long hiT = getTime(hi);
-      long hiV = getLong(hi);
+      int hiV = getValueIndex(hi);
       set(lo++, hiT, hiV);
       set(hi--, loT, loV);
     }

Review Comment:
   这个方法看起来各个实现类里都变成一样的了,是不是可以放到 TimSort.java 里



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to