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 theNamedOperationResolver
GraphHook
. If this handler is invoked then it means the named operation could not be resolved.
-
-
Field Summary
Fields Modifier and Type Field Description static String
THE_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 Object
doOperation(NamedOperation<?,Object> operation, Context context, Store store)
Execute the givenOutput
operation.
-
-
-
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:OutputOperationHandler
Execute the givenOutput
operation.- Specified by:
doOperation
in interfaceOperationHandler<NamedOperation<?,Object>>
- Specified by:
doOperation
in interfaceOutputOperationHandler<NamedOperation<?,Object>,Object>
- Parameters:
operation
- theOutput
operation to be executedcontext
- the operation chain context, containing the user who executed the operationstore
- theStore
the operation should be run on- Returns:
- the output for the operation.
- Throws:
OperationException
- thrown if the operation fails
-
-