Mercurial > hg > Members > tatsuki > bench > jungle-core
changeset 186:209df7faa37c
fit TreeMap
remove getLoop
author | tatsuki |
---|---|
date | Mon, 30 Mar 2015 12:14:35 +0900 |
parents | 6d125ba315d8 |
children | 868a746996ad |
files | src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/traverser/InterfaceTraverser.java src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/jungle/store/index/IndexCreater.java src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/jungle/test/FJTreeMapGetIteratorThread.java |
diffstat | 3 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/traverser/InterfaceTraverser.java Mon Mar 30 00:49:19 2015 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/traverser/InterfaceTraverser.java Mon Mar 30 12:14:35 2015 +0900 @@ -307,11 +307,11 @@ // } public Iterator<TreeNode> get(String key, String value) { - Optional<TreeMap<String, List<TreeNode>>> indexOp = indexList.getLoop(key); + Optional<TreeMap<String, List<TreeNode>>> indexOp = indexList.get(key); if (!indexOp.isPresent()) return null; - Optional<List<TreeNode>> nodeListOp = indexOp.get().getLoop(value); + Optional<List<TreeNode>> nodeListOp = indexOp.get().get(value); if (!nodeListOp.isPresent()) return new NulIterator<TreeNode>();
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/jungle/store/index/IndexCreater.java Mon Mar 30 00:49:19 2015 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/jungle/store/index/IndexCreater.java Mon Mar 30 12:14:35 2015 +0900 @@ -78,7 +78,7 @@ public TreeMap<String, TreeMap<String, List<TreeNode>>> set(String key, String value, TreeNode node) { if (key == null ) System.out.println(""); - Optional<TreeMap<String, List<TreeNode>>> indexOp = indexList.getLoop(key); + Optional<TreeMap<String, List<TreeNode>>> indexOp = indexList.get(key); if (!indexOp.isPresent()) { TreeMap<String, List<TreeNode>> index = new TreeMap(); List<TreeNode> nodeList = List.nil(); @@ -89,7 +89,7 @@ } TreeMap<String, List<TreeNode>> index = indexOp.get(); - Optional<List<TreeNode>> nodeListOp = index.getLoop(value); + Optional<List<TreeNode>> nodeListOp = index.get(value); List<TreeNode> newNodeList;
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/jungle/test/FJTreeMapGetIteratorThread.java Mon Mar 30 00:49:19 2015 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/jungle/test/FJTreeMapGetIteratorThread.java Mon Mar 30 12:14:35 2015 +0900 @@ -32,7 +32,7 @@ @Override public void run() { while (loop) { - Optional<String> value = map.getLoop("50"); + Optional<String> value = map.get("50"); if (value.isPresent()) findCount++; }