You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2019/03/22 03:41:58 UTC
[incubator-iotdb] branch improve_memtable_sort updated: replace the
name of treeMap
This is an automated email from the ASF dual-hosted git repository.
hxd pushed a commit to branch improve_memtable_sort
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
The following commit(s) were added to refs/heads/improve_memtable_sort by this push:
new 9b94183 replace the name of treeMap
9b94183 is described below
commit 9b9418390593e4a6fa389dd80c692fdfac40b00b
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Fri Mar 22 11:41:43 2019 +0800
replace the name of treeMap
---
.../org/apache/iotdb/db/engine/memtable/WritableMemChunk.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/iotdb/src/main/java/org/apache/iotdb/db/engine/memtable/WritableMemChunk.java b/iotdb/src/main/java/org/apache/iotdb/db/engine/memtable/WritableMemChunk.java
index 2353df7..c351163 100644
--- a/iotdb/src/main/java/org/apache/iotdb/db/engine/memtable/WritableMemChunk.java
+++ b/iotdb/src/main/java/org/apache/iotdb/db/engine/memtable/WritableMemChunk.java
@@ -102,12 +102,12 @@ public class WritableMemChunk implements IWritableMemChunk {
public List<TimeValuePair> getSortedTimeValuePairList() {
int length = list.size();
- Map<Long, TsPrimitiveType> treeMap = new HashMap<>(length, 1.0f);
+ Map<Long, TsPrimitiveType> map = new HashMap<>(length, 1.0f);
for (int i = 0; i < length; i++) {
- treeMap.put(list.getTimestamp(i), TsPrimitiveType.getByType(dataType, list.getValue(i)));
+ map.put(list.getTimestamp(i), TsPrimitiveType.getByType(dataType, list.getValue(i)));
}
- List<TimeValuePair> ret = new ArrayList<>(treeMap.size());
- treeMap.forEach((k, v) -> ret.add(new TimeValuePairInMemTable(k, v)));
+ List<TimeValuePair> ret = new ArrayList<>(map.size());
+ map.forEach((k, v) -> ret.add(new TimeValuePairInMemTable(k, v)));
ret.sort(TimeValuePair::compareTo);
return ret;