You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2023/11/23 06:40:59 UTC
(iotdb) branch BinaryInit created (now b08b627c81b)
This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a change to branch BinaryInit
in repository https://gitbox.apache.org/repos/asf/iotdb.git
at b08b627c81b Improve Statistics deserialization
This branch includes the following new commits:
new b08b627c81b Improve Statistics deserialization
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.
(iotdb) 01/01: Improve Statistics deserialization
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a commit to branch BinaryInit
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit b08b627c81b5b1027071d87bd152e96eaabcbac6
Author: JackieTien97 <ja...@gmail.com>
AuthorDate: Thu Nov 23 14:40:29 2023 +0800
Improve Statistics deserialization
---
.../iotdb/tsfile/file/metadata/statistics/BinaryStatistics.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/iotdb-core/tsfile/src/main/java/org/apache/iotdb/tsfile/file/metadata/statistics/BinaryStatistics.java b/iotdb-core/tsfile/src/main/java/org/apache/iotdb/tsfile/file/metadata/statistics/BinaryStatistics.java
index 75e60e2bc95..1e27147aa17 100644
--- a/iotdb-core/tsfile/src/main/java/org/apache/iotdb/tsfile/file/metadata/statistics/BinaryStatistics.java
+++ b/iotdb-core/tsfile/src/main/java/org/apache/iotdb/tsfile/file/metadata/statistics/BinaryStatistics.java
@@ -42,8 +42,10 @@ public class BinaryStatistics extends Statistics<Binary> {
ClassLayout.parseClass(BinaryStatistics.class).instanceSize()
+ 2 * ClassLayout.parseClass(Binary.class).instanceSize();
- private Binary firstValue = new Binary("", TSFileConfig.STRING_CHARSET);
- private Binary lastValue = new Binary("", TSFileConfig.STRING_CHARSET);
+ private static final Binary EMPTY_VALUE = new Binary("", TSFileConfig.STRING_CHARSET);
+
+ private Binary firstValue = EMPTY_VALUE;
+ private Binary lastValue = EMPTY_VALUE;
@Override
public TSDataType getType() {