You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tsfile.apache.org by ha...@apache.org on 2024/08/12 03:36:41 UTC

(tsfile) branch qxj_1.1 created (now 325c6b33)

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

haonan pushed a change to branch qxj_1.1
in repository https://gitbox.apache.org/repos/asf/tsfile.git


      at 325c6b33 NO TEXT statistics

This branch includes the following new commits:

     new 325c6b33 NO TEXT statistics

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.



(tsfile) 01/01: NO TEXT statistics

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

haonan pushed a commit to branch qxj_1.1
in repository https://gitbox.apache.org/repos/asf/tsfile.git

commit 325c6b33c25fce956ee240791dbda880f38412d4
Author: HTHou <hh...@outlook.com>
AuthorDate: Mon Aug 12 11:36:15 2024 +0800

    NO TEXT statistics
---
 .../org/apache/tsfile/common/conf/TSFileConfig.java    |  2 +-
 .../file/metadata/statistics/BinaryStatistics.java     | 18 +++++++++---------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/java/tsfile/src/main/java/org/apache/tsfile/common/conf/TSFileConfig.java b/java/tsfile/src/main/java/org/apache/tsfile/common/conf/TSFileConfig.java
index 5c0b719a..f52dea00 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/common/conf/TSFileConfig.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/common/conf/TSFileConfig.java
@@ -82,7 +82,7 @@ public class TSFileConfig implements Serializable {
   private int pageSizeInByte = 64 * 1024;
 
   /** The maximum number of data points in a page, default value is 10000. */
-  private int maxNumberOfPointsInPage = 10_000;
+  private int maxNumberOfPointsInPage = 256;
 
   /** The maximum degree of a metadataIndex node, default value is 256. */
   private int maxDegreeOfIndexNode = 256;
diff --git a/java/tsfile/src/main/java/org/apache/tsfile/file/metadata/statistics/BinaryStatistics.java b/java/tsfile/src/main/java/org/apache/tsfile/file/metadata/statistics/BinaryStatistics.java
index 34db11b9..b687526a 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/file/metadata/statistics/BinaryStatistics.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/file/metadata/statistics/BinaryStatistics.java
@@ -71,24 +71,24 @@ public class BinaryStatistics extends Statistics<Binary> {
    * @param last the last value
    */
   public void initializeStats(Binary first, Binary last) {
-    this.firstValue = first;
-    this.lastValue = last;
+    //    this.firstValue = first;
+    //    this.lastValue = last;
   }
 
   private void updateLastStats(Binary lastValue) {
-    this.lastValue = lastValue;
+    //    this.lastValue = lastValue;
   }
 
   private void updateStats(Binary firstValue, Binary lastValue, long startTime, long endTime) {
     // only if endTime greater or equals to the current endTime need we update the last value
     // only if startTime less or equals to the current startTime need we update the first value
     // otherwise, just ignore
-    if (startTime <= this.getStartTime()) {
-      this.firstValue = firstValue;
-    }
-    if (endTime >= this.getEndTime()) {
-      this.lastValue = lastValue;
-    }
+    //    if (startTime <= this.getStartTime()) {
+    //      this.firstValue = firstValue;
+    //    }
+    //    if (endTime >= this.getEndTime()) {
+    //      this.lastValue = lastValue;
+    //    }
   }
 
   @Override