jt2594838 commented on a change in pull request #429: [IOTDB-205]Support
storage-group-level data ttl
URL: https://github.com/apache/incubator-iotdb/pull/429#discussion_r337308720
##########
File path:
server/src/main/java/org/apache/iotdb/db/engine/storagegroup/TsFileProcessor.java
##########
@@ -576,6 +579,8 @@ public String getStorageGroupName() {
QueryUtils.modifyChunkMetaData(chunkMetaDataList,
modifications);
+ chunkMetaDataList.removeIf(chunkMetaData -> chunkMetaData.getEndTime() <
timeLowerBound);
Review comment:
This will require maintaining a ThreadLocal predicate for each query. As far
as I am concerned, this works no different from using a lambda since new object
construction is unavoidable.
Somehow, I moved `timeLowerBound` into `QueryContext` and replaced this with
a method reference.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services