public interface Invokable<O,P extends Serializable,R> extends Serializable
invoke
call. The eval
method can be used to implement "map"
operations, and the merge
method can be used to implement "reduce" operations.R eval(O toEval, P param, EvalArgs<O> args) throws InvokeException, InterruptedException
toEval
- object to evaluateparam
- parameters objectargs
- evaluation argumentsInvokeException
- if an error occurred. This exception will be passed back to the invoker in the InvokeResult
.InterruptedException
- if any thread has interrupted the current thread.R merge(R first, R second) throws InvokeException, InterruptedException
first
- first result objectsecond
- second result objectInvokeException
- if an error occurred. This exception will be passed back to the invoker in the InvokeResult
.InterruptedException
- if any thread has interrupted the current thread.Copyright (C) 2007-2014 ScaleOut Software, Inc.