103
|
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;
|
107
|
18 private TreeMap<String,TreeMap<String, List<TreeNode>>> index;
|
103
|
19
|
107
|
20 public LoggingIndexNode(TreeNode wrap ,TreeMap<String,TreeMap<String, List<TreeNode>>> index)
|
103
|
21 {
|
|
22 this(wrap,new DefaultOperationLog(),index);
|
|
23 }
|
|
24
|
107
|
25 public LoggingIndexNode(TreeNode wrap,OperationLog log, TreeMap<String,TreeMap<String, List<TreeNode>>> index)
|
103
|
26 {
|
|
27 super(wrap, log);
|
|
28 this.wrap = wrap;
|
|
29 this.log = log;
|
104
|
30 this.index = index;
|
103
|
31 }
|
|
32
|
|
33 @Override
|
107
|
34 public TreeMap<String,TreeMap<String, List<TreeNode>>> getIndex(){
|
103
|
35 return index;
|
|
36 }
|
|
37
|
|
38 @Override
|
|
39 public LoggingAttributes getAttributes()
|
|
40 {
|
104
|
41 return new LoggingIndexAttributes(wrap,log,index);
|
103
|
42 }
|
|
43
|
|
44 @Override
|
|
45 public LoggingChildren getChildren()
|
|
46 {
|
|
47 return new LoggingChildren(wrap,log);
|
|
48 }
|
|
49
|
|
50
|
|
51 }
|