view src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/jungle/store/index/LoggingIndexNode.java @ 104:f9a0e7069811

delete worning halfway
author one
date Fri, 12 Sep 2014 16:22:22 +0900
parents bed3afd5c2e2
children 5b7e45464bb8
line wrap: on
line source

package jp.ac.u_ryukyu.ie.cr.tatsuki.jungle.store.index;

import fj.data.List;
import fj.data.TreeMap;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.TreeNode;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.logger.DefaultOperationLog;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.logger.LoggingAttributes;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.logger.LoggingChildren;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.logger.LoggingNode;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.logger.OperationLog;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Pair;

public class LoggingIndexNode extends LoggingNode {

	
	private final TreeNode wrap;
	private final OperationLog log;
	private TreeMap<String,List<TreeNode>> index;
	
	public LoggingIndexNode(TreeNode wrap ,TreeMap<String,List<TreeNode>> index)
	{
		this(wrap,new DefaultOperationLog(),index);
	}
	
	public LoggingIndexNode(TreeNode wrap,OperationLog log, TreeMap<String,List<TreeNode>> index)
	{
		super(wrap, log);
		this.wrap = wrap;
		this.log = log;
		this.index = index;
	}

	@Override
	public TreeMap<String,List<TreeNode>> getIndex(){
		return index;
	}
	
	@Override
	public LoggingAttributes getAttributes()
	{
		return new LoggingIndexAttributes(wrap,log,index);
	}

	@Override
	public LoggingChildren getChildren()
	{
		return new LoggingChildren(wrap,log);
	}
	
	
}