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:43 UTC
[incubator-iotdb] 01/01: change HashMap to TreeMap
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()));