Mercurial > hg > Members > tatsuki > bench > jungle-core
changeset 159:5dcb75f038f0 untilIndex
fix bag
author | one |
---|---|
date | Sun, 07 Dec 2014 19:16:18 +0900 |
parents | f98f2704b154 |
children | 7c4fc8732eb4 |
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/Index.java |
diffstat | 2 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/traverser/InterfaceTraverser.java Sun Dec 07 18:43:32 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/traverser/InterfaceTraverser.java Sun Dec 07 19:16:18 2014 +0900 @@ -60,7 +60,7 @@ for (; itNode.hasNext();) { TreeNode targetNode = itNode.next(); if (parentUpdateFlag) - parentIndex.set(targetNode); + parentIndex = parentIndex.set(targetNode); // List<String> keys = targetNode.getAttributes().getKeys(); // for (String key : keys) { // String value = targetNode.getAttributes().getString(key); @@ -79,7 +79,7 @@ * @param searchValue * @return */ - public Iterator<TreeNode> findInSubTree(Query query, TreeNode subTree, String key, String searchValue) { + public Iterator<TreeNode> findInSubTree(final Query query, TreeNode subTree, String key, String searchValue) { /* * indexを使って取ってきたNodeのPathと、subTreeのPathを先頭から1つずつ比較し、 * indexから取ってきたNodeのPathが一致した場合、そのNodeを返す @@ -152,7 +152,7 @@ * @param searchValue * @return */ - public Iterator<TreeNode> findInSubTreeAllValue(Query query, TreeNode subTree, String key) { + public Iterator<TreeNode> findInSubTreeAllValue(final Query query, TreeNode subTree, String key) { /* * indexからinnerIndexを取得 取得したinnerIndexが保有するKeyを取得 * そのKeyを保有するNodeとNodeのPathを取得する @@ -213,7 +213,7 @@ } } - public Iterator<TreeNode> find(Query query, String key, String searchValue) { + public Iterator<TreeNode> find(final Query query, final String key, String searchValue) { List<TreeNode> nodeList = index.get(key, searchValue); if (nodeList != null && useIndex) { @@ -267,7 +267,7 @@ } } - public Iterator<TreeNode> findAll(Query query, String key) { + public Iterator<TreeNode> findAll(final Query query, final String key) { Iterator<TreeNode> nodeList = index.getAll(key); if (nodeList != null && useIndex) {
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/jungle/store/index/Index.java Sun Dec 07 18:43:32 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/jungle/store/index/Index.java Sun Dec 07 19:16:18 2014 +0900 @@ -90,7 +90,7 @@ public Iterator<TreeNode> getAll(String key){ - TreeMap<String, List<TreeNode>> index = indexList.get(key); + final TreeMap<String, List<TreeNode>> index = indexList.get(key); if (index == null) return null;