Mercurial > hg > Members > tatsuki > bench > jungle-core
changeset 160:6b4aab79910d
fix bag
author | one |
---|---|
date | Sun, 07 Dec 2014 19:19:21 +0900 |
parents | 89ed172137ab |
children | 38068be4fa4c |
files | src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTransactionManager.java src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/traverser/InterfaceTraverser.java |
diffstat | 2 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTransactionManager.java Sun Dec 07 19:01:08 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTransactionManager.java Sun Dec 07 19:19:21 2014 +0900 @@ -60,7 +60,10 @@ IndexManager indexManager = new IndexManager(repository.getReservation()); InterfaceTraverser traverser = new InterfaceTraverser(_newRoot, indexManager, true); + long t1 = System.currentTimeMillis(); traverser.createIndex(); + long t2 = System.currentTimeMillis(); + System.out.println("createIndexTime = " + (t2 - t1)); Index nulIndex = traverser.getIndex(); ParentIndex nulParentIndex = traverser.getParentIndex(); DefaultChangeSet newCs = new DefaultChangeSet(_newRoot, cs, list, uuid, _treeName, nextRevision, nulIndex,
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/traverser/InterfaceTraverser.java Sun Dec 07 19:01:08 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/traverser/InterfaceTraverser.java Sun Dec 07 19:19:21 2014 +0900 @@ -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) {