public class FilterInvokable extends java.lang.Object implements Invokable<java.lang.Object,InvokeFilterParams<?,?>,java.util.Set<CachedObjectId>>
| Constructor and Description |
|---|
FilterInvokable() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<CachedObjectId> |
eval(java.lang.Object toEval,
InvokeFilterParams<?,?> params,
EvalArgs<java.lang.Object> args)
Evaluate a users filter method
|
java.util.Set<CachedObjectId> |
merge(java.util.Set<CachedObjectId> first,
java.util.Set<CachedObjectId> second)
Merges two result objects into one.
|
public java.util.Set<CachedObjectId> eval(java.lang.Object toEval, InvokeFilterParams<?,?> params, EvalArgs<java.lang.Object> args) throws InvokeException, java.lang.InterruptedException
eval in interface Invokable<java.lang.Object,InvokeFilterParams<?,?>,java.util.Set<CachedObjectId>>toEval - object to evaluateparams - user defined params that will be used to instantiate the filter.args - evaluation argumentsInvokeException - if an Exception occursjava.lang.InterruptedException - if the thread running this invoke is interrupted.public java.util.Set<CachedObjectId> merge(java.util.Set<CachedObjectId> first, java.util.Set<CachedObjectId> second) throws InvokeException, java.lang.InterruptedException
Invokablemerge in interface Invokable<java.lang.Object,InvokeFilterParams<?,?>,java.util.Set<CachedObjectId>>first - first result objectsecond - second result objectInvokeException - if an error occurred. This exception will be passed back to the invoker in the InvokeResult.java.lang.InterruptedException - if any thread has interrupted the current thread.