Mercurial > hg > Members > tatsuki > bench > jungle-core
comparison src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/jungle/store/index/LoggingIndexNode.java @ 103:bed3afd5c2e2
add Index but Not use
author | one |
---|---|
date | Fri, 12 Sep 2014 14:37:09 +0900 |
parents | |
children | f9a0e7069811 |
comparison
equal
deleted
inserted
replaced
101:c297f0015d9e | 103:bed3afd5c2e2 |
---|---|
1 package jp.ac.u_ryukyu.ie.cr.tatsuki.jungle.store.index; | |
2 | |
3 import fj.data.List; | |
4 import fj.data.TreeMap; | |
5 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.TreeNode; | |
6 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.logger.DefaultOperationLog; | |
7 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.logger.LoggingAttributes; | |
8 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.logger.LoggingChildren; | |
9 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.logger.LoggingNode; | |
10 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.logger.OperationLog; | |
11 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Pair; | |
12 | |
13 public class LoggingIndexNode extends LoggingNode { | |
14 | |
15 | |
16 private final TreeNode wrap; | |
17 private final OperationLog log; | |
18 private TreeMap<String,List<TreeNode>> index; | |
19 | |
20 public LoggingIndexNode(TreeNode wrap ,TreeMap<String,List<TreeNode>> index) | |
21 { | |
22 this(wrap,new DefaultOperationLog(),index); | |
23 } | |
24 | |
25 public LoggingIndexNode(TreeNode wrap,OperationLog log, TreeMap<String,List<TreeNode>> index) | |
26 { | |
27 super(wrap, log); | |
28 this.wrap = wrap; | |
29 this.log = log; | |
30 } | |
31 | |
32 @Override | |
33 public TreeMap<String,List<TreeNode>> getIndex(){ | |
34 return index; | |
35 } | |
36 | |
37 @Override | |
38 public LoggingAttributes getAttributes() | |
39 { | |
40 return new LoggingAttributes(wrap,log); | |
41 } | |
42 | |
43 @Override | |
44 public LoggingChildren getChildren() | |
45 { | |
46 return new LoggingChildren(wrap,log); | |
47 } | |
48 | |
49 | |
50 } |