Class IfHandler
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.handler.IfHandler
-
- All Implemented Interfaces:
OperationHandler<If<Object,Object>>,OutputOperationHandler<If<Object,Object>,Object>
public class IfHandler extends Object implements OutputOperationHandler<If<Object,Object>,Object>
An operation handler forIfoperations. IfIf.getThen()orIf.getOtherwise()is called but returns a null operation, then the input object will simply be returned.
-
-
Constructor Summary
Constructors Constructor Description IfHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectdoOperation(If operation, Context context, Store store)Execute the givenOutputoperation.
-
-
-
Method Detail
-
doOperation
public Object doOperation(If operation, Context context, Store store) throws OperationException
Description copied from interface:OutputOperationHandlerExecute the givenOutputoperation.- Specified by:
doOperationin interfaceOperationHandler<If<Object,Object>>- Specified by:
doOperationin interfaceOutputOperationHandler<If<Object,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
-
-