You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ka...@apache.org on 2019/04/17 13:27:42 UTC

[incubator-iotdb] branch d_kangrong_digest created (now 9e13c23)

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

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


      at 9e13c23  change HashMap to TreeMap

This branch includes the following new commits:

     new 9e13c23  change HashMap to TreeMap

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: change HashMap to TreeMap

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

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

commit 9e13c236256abe389b84e44ac96de3e486e20a5b
Author: kr11 <30...@qq.com>
AuthorDate: Wed Apr 17 21:27:18 2019 +0800

    change HashMap to TreeMap
---
 .../main/java/org/apache/iotdb/tsfile/write/writer/TsFileIOWriter.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tsfile/src/main/java/org/apache/iotdb/tsfile/write/writer/TsFileIOWriter.java b/tsfile/src/main/java/org/apache/iotdb/tsfile/write/writer/TsFileIOWriter.java
index 5d0a2a7..25e12c0 100644
--- a/tsfile/src/main/java/org/apache/iotdb/tsfile/write/writer/TsFileIOWriter.java
+++ b/tsfile/src/main/java/org/apache/iotdb/tsfile/write/writer/TsFileIOWriter.java
@@ -159,7 +159,8 @@ public class TsFileIOWriter {
     header.serializeTo(out.wrapAsStream());
     LOG.debug("finish series chunk:{} header, file position {}", header, out.getPosition());
 
-    Map<String, ByteBuffer> statisticsMap = new HashMap<>();
+//    Map<String, ByteBuffer> statisticsMap = new HashMap<>();
+    Map<String, ByteBuffer> statisticsMap = new TreeMap<>();
     // TODO add your statistics
     statisticsMap.put(StatisticConstant.MAX_VALUE, ByteBuffer.wrap(statistics.getMaxBytes()));
     statisticsMap.put(StatisticConstant.MIN_VALUE, ByteBuffer.wrap(statistics.getMinBytes()));