You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ji...@apache.org on 2022/11/18 11:54:53 UTC

[iotdb] branch improvedAlign_for_expr updated: add header

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

jiangtian pushed a commit to branch improvedAlign_for_expr
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/improvedAlign_for_expr by this push:
     new ef8051a1f7 add header
ef8051a1f7 is described below

commit ef8051a1f712d3f36e9d61ef2272ceee780ff1a6
Author: Tian Jiang <jt...@163.com>
AuthorDate: Fri Nov 18 19:55:25 2022 +0800

    add header
---
 .../java/org/apache/iotdb/tsfile/write/monitor/WriteStatistics.java     | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tsfile/src/main/java/org/apache/iotdb/tsfile/write/monitor/WriteStatistics.java b/tsfile/src/main/java/org/apache/iotdb/tsfile/write/monitor/WriteStatistics.java
index e50fc0e92e..3ba26fd039 100644
--- a/tsfile/src/main/java/org/apache/iotdb/tsfile/write/monitor/WriteStatistics.java
+++ b/tsfile/src/main/java/org/apache/iotdb/tsfile/write/monitor/WriteStatistics.java
@@ -37,6 +37,8 @@ public class WriteStatistics {
 
   public void dump(String filePath) throws IOException {
     try (BufferedWriter writer = new BufferedWriter(new FileWriter(filePath))) {
+      writer.write("measurementId, rawSize, encodedSize, compressedSize");
+      writer.newLine();
       for (Entry<String, Statistic> entry : statisticMap.entrySet()) {
         String label = entry.getKey();
         Statistic statistic = entry.getValue();