103
|
1 package jp.ac.u_ryukyu.ie.cr.tatsuki.jungle.store.index;
|
|
2
|
|
3 import fj.data.List;
|
|
4 import fj.data.TreeMap;
|
110
|
5 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.NodePath;
|
103
|
6 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.TreeNode;
|
|
7 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.logger.DefaultOperationLog;
|
|
8 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.logger.LoggingAttributes;
|
|
9 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.logger.LoggingChildren;
|
|
10 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.logger.LoggingNode;
|
|
11 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.logger.OperationLog;
|
|
12 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Pair;
|
|
13
|
|
14 public class LoggingIndexNode extends LoggingNode {
|
|
15
|
|
16
|
|
17 private final TreeNode wrap;
|
|
18 private final OperationLog log;
|
107
|
19 private TreeMap<String,TreeMap<String, List<TreeNode>>> index;
|
103
|
20
|
107
|
21 public LoggingIndexNode(TreeNode wrap ,TreeMap<String,TreeMap<String, List<TreeNode>>> index)
|
103
|
22 {
|
|
23 this(wrap,new DefaultOperationLog(),index);
|
|
24 }
|
|
25
|
107
|
26 public LoggingIndexNode(TreeNode wrap,OperationLog log, TreeMap<String,TreeMap<String, List<TreeNode>>> index)
|
103
|
27 {
|
|
28 super(wrap, log);
|
|
29 this.wrap = wrap;
|
|
30 this.log = log;
|
104
|
31 this.index = index;
|
103
|
32 }
|
|
33
|
|
34 @Override
|
107
|
35 public TreeMap<String,TreeMap<String, List<TreeNode>>> getIndex(){
|
103
|
36 return index;
|
|
37 }
|
|
38
|
|
39 @Override
|
|
40 public LoggingAttributes getAttributes()
|
|
41 {
|
104
|
42 return new LoggingIndexAttributes(wrap,log,index);
|
103
|
43 }
|
|
44
|
|
45 @Override
|
|
46 public LoggingChildren getChildren()
|
|
47 {
|
|
48 return new LoggingChildren(wrap,log);
|
|
49 }
|
|
50
|
|
51
|
|
52 }
|