Mercurial > hg > Members > tatsuki > bench > jungle-core
comparison src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/jungle/query/PathNodeIterator.java @ 141:3071b1a471fd
add getKeys
author | one |
---|---|
date | Tue, 11 Nov 2014 18:57:52 +0900 |
parents | ec166c8ff079 |
children | 371b6ddb78f2 |
comparison
equal
deleted
inserted
replaced
140:99bda30ea72c | 141:3071b1a471fd |
---|---|
23 * get queryIndexCondition from query | 23 * get queryIndexCondition from query |
24 * if already index exists, use index | 24 * if already index exists, use index |
25 * otherwise traverse tree and create index | 25 * otherwise traverse tree and create index |
26 * | 26 * |
27 * */ | 27 * */ |
28 public PathNodeIterator(TreeNode root) { | 28 public PathNodeIterator(Pair<TreeNode,NodePath> pair) { |
29 this.root = root; | 29 this.root = pair.left(); |
30 path = new DefaultNodePath(); | 30 path = pair.right(); |
31 node = root; | 31 node = root; |
32 } | 32 } |
33 | 33 |
34 @Override | 34 @Override |
35 public boolean hasNext() { | 35 public boolean hasNext() { |