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 forIf
operations. 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 Object
doOperation(If operation, Context context, Store store)
Execute the givenOutput
operation.
-
-
-
Method Detail
-
doOperation
public Object doOperation(If operation, Context context, Store store) throws OperationException
Description copied from interface:OutputOperationHandler
Execute the givenOutput
operation.- Specified by:
doOperation
in interfaceOperationHandler<If<Object,Object>>
- Specified by:
doOperation
in interfaceOutputOperationHandler<If<Object,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
-
-