view src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/operations/NodeOperation.java @ 55:4ff16d970ffc

added getter to operations
author Shoshi TAMAKI
date Fri, 08 Feb 2013 19:36:16 +0900
parents 0a3bff2d9c89
children 540a27dde42f
line wrap: on
line source

package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations;

import java.nio.ByteBuffer;

import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.Command;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.trasnformer.EditableNode;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Either;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Error;

public interface NodeOperation
{
	public Command getCommand();
	public <T extends EditableNode<T>> Either<Error,T> invoke(T _target);
	
	public int getPosition();
	public String getKey();
	public ByteBuffer getValue();
}