You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2021/09/15 12:46:12 UTC
[GitHub] [iotdb] HTHou commented on a change in pull request #3926: [ISSUE-3927] Inefficient Usage of JCF
HTHou commented on a change in pull request #3926:
URL: https://github.com/apache/iotdb/pull/3926#discussion_r709149119
##########
File path: server/src/main/java/org/apache/iotdb/db/query/executor/fill/LastPointReader.java
##########
@@ -169,8 +170,9 @@ private TimeValuePair getChunkLastPoint(IChunkMetadata chunkMetaData) throws IOE
chunkStatistics.getEndTime(), chunkStatistics.getLastValue(), dataType);
}
List<IPageReader> pageReaders = FileLoaderUtils.loadPageReaderList(chunkMetaData, timeFilter);
- for (int i = pageReaders.size() - 1; i >= 0; i--) {
- IPageReader pageReader = pageReaders.get(i);
+ Iterator it = pageReaders.descendingIterator();
Review comment:
```suggestion
Iterator it = ((LinkedList<IPageReader>)pageReaders).descendingIterator();
```
--
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org