Class NamedOperationHandler
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.handler.named.NamedOperationHandler
-
- All Implemented Interfaces:
OperationHandler<NamedOperation<?,Object>>,OutputOperationHandler<NamedOperation<?,Object>,Object>
public class NamedOperationHandler extends Object implements OutputOperationHandler<NamedOperation<?,Object>,Object>
Operation handler forNamedOperation. Named operations are resolved by theNamedOperationResolverGraphHook. If this handler is invoked then it means the named operation could not be resolved.
-
-
Field Summary
Fields Modifier and Type Field Description static StringTHE_NAMED_OPERATION_S_WAS_NOT_FOUND
-
Constructor Summary
Constructors Constructor Description NamedOperationHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectdoOperation(NamedOperation<?,Object> operation, Context context, Store store)Execute the givenOutputoperation.
-
-
-
Field Detail
-
THE_NAMED_OPERATION_S_WAS_NOT_FOUND
public static final String THE_NAMED_OPERATION_S_WAS_NOT_FOUND
- See Also:
- Constant Field Values
-
-
Method Detail
-
doOperation
public Object doOperation(NamedOperation<?,Object> operation, Context context, Store store) throws OperationException
Description copied from interface:OutputOperationHandlerExecute the givenOutputoperation.- Specified by:
doOperationin interfaceOperationHandler<NamedOperation<?,Object>>- Specified by:
doOperationin interfaceOutputOperationHandler<NamedOperation<?,Object>,Object>- Parameters:
operation- theOutputoperation to be executedcontext- the operation chain context, containing the user who executed the operationstore- theStorethe operation should be run on- Returns:
- the output for the operation.
- Throws:
OperationException- thrown if the operation fails
-
-