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 <[email protected]>
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

Reply via email to