You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2019/12/26 10:31:16 UTC

[incubator-iotdb] branch chunk_reader_2 created (now 072877c)

This is an automated email from the ASF dual-hosted git repository.

qiaojialin pushed a change to branch chunk_reader_2
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git.


      at 072877c  remove useless code

This branch includes the following new commits:

     new 072877c  remove useless code

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-iotdb] 01/01: remove useless code

Posted by qi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

qiaojialin pushed a commit to branch chunk_reader_2
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git

commit 072877cac14f81b09788502d4a5b336169cacb55
Author: qiaojialin <64...@qq.com>
AuthorDate: Thu Dec 26 18:29:35 2019 +0800

    remove useless code
---
 .../resourceRelated/SeqResourceIterateReader.java   | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/query/reader/resourceRelated/SeqResourceIterateReader.java b/server/src/main/java/org/apache/iotdb/db/query/reader/resourceRelated/SeqResourceIterateReader.java
index 1226331..e46a37a 100644
--- a/server/src/main/java/org/apache/iotdb/db/query/reader/resourceRelated/SeqResourceIterateReader.java
+++ b/server/src/main/java/org/apache/iotdb/db/query/reader/resourceRelated/SeqResourceIterateReader.java
@@ -132,27 +132,6 @@ public class SeqResourceIterateReader extends IterateReader {
     }
   }
 
-  /**
-   * Returns true if the start and end time of the series data in this sequence TsFile do not
-   * satisfy the filter condition. Returns false if satisfy.
-   * <p>
-   * This method is used to in <code>constructNextReader</code> to check whether this TsFile can be
-   * skipped.
-   *
-   * @param tsFile the TsFileResource corresponding to this TsFile
-   * @param filter filter condition. Null if no filter.
-   * @return True if the TsFile's start and end time do not satisfy the filter condition; False if
-   * satisfy.
-   */
-  private boolean isTsFileNotSatisfied(TsFileResource tsFile, Filter filter) {
-    if (filter == null) {
-      return false;
-    }
-    long startTime = tsFile.getStartTimeMap().get(seriesPath.getDevice());
-    long endTime = tsFile.getEndTimeMap().get(seriesPath.getDevice());
-    return !filter.satisfyStartEndTime(startTime, endTime);
-  }
-
   private IAggregateReader initSealedTsFileReader(TsFileResource sealedTsFile, Filter filter,
       QueryContext context) throws IOException {
     // prepare metaDataList