Mercurial > hg > Members > tatsuki > bench > jungle-core
changeset 131:1c3c3300716c
change
author | one |
---|---|
date | Fri, 17 Oct 2014 17:21:03 +0900 |
parents | bb53330364f1 |
children | ba5370090393 |
files | src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/DefaultJungleTree.java 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/DeleteIndexEditor.java |
diffstat | 3 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/DefaultJungleTree.java Tue Oct 14 17:26:29 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/DefaultJungleTree.java Fri Oct 17 17:21:03 2014 +0900 @@ -101,5 +101,4 @@ return cs.getOperations(); } - }
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/traverser/InterfaceTraverser.java Tue Oct 14 17:26:29 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/traverser/InterfaceTraverser.java Fri Oct 17 17:21:03 2014 +0900 @@ -65,7 +65,7 @@ public Iterator<Pair<TreeNode, NodePath>> find(final Query query, String key, String searchValue) { - if (!index.get(key).isNone()) { + if (index.get(key).isSome()) { TreeMap<String, List<Pair<TreeNode, NodePath>>> innerIndex = this.index.get(key).some(); Option<List<Pair<TreeNode, NodePath>>> opList = innerIndex.get(searchValue);
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/jungle/store/index/DeleteIndexEditor.java Tue Oct 14 17:26:29 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/jungle/store/index/DeleteIndexEditor.java Fri Oct 17 17:21:03 2014 +0900 @@ -54,10 +54,9 @@ List<Pair<TreeNode, NodePath>> newList = List.nil(); for (Pair<TreeNode, NodePath> pathNode : list){ - System.out.println(pathString); - System.out.println(pathNode.right().toString()); - if (pathNode.right().toString() == pathString) + if (!pathNode.right().toString().equalsIgnoreCase(pathString)) { newList = newList.cons(pathNode); + } } if (newList.isEmpty()) {