Class OperationChainHandler<OUT>
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.handler.OperationChainHandler<OUT>
-
- Type Parameters:
OUT
- the output type of the operation chain
- All Implemented Interfaces:
OperationHandler<OperationChain<OUT>>
,OutputOperationHandler<OperationChain<OUT>,OUT>
- Direct Known Subclasses:
OperationChainHandler
public class OperationChainHandler<OUT> extends Object implements OutputOperationHandler<OperationChain<OUT>,OUT>
AOperationChainHandler
handlesOperationChain
s.
-
-
Constructor Summary
Constructors Constructor Description OperationChainHandler(OperationChainValidator opChainValidator, List<OperationChainOptimiser> opChainOptimisers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OUT
doOperation(OperationChain<OUT> operationChain, Context context, Store store)
Execute the givenOutput
operation.<O> OperationChain<O>
prepareOperationChain(OperationChain<O> operationChain, Context context, Store store)
-
-
-
Constructor Detail
-
OperationChainHandler
public OperationChainHandler(OperationChainValidator opChainValidator, List<OperationChainOptimiser> opChainOptimisers)
-
-
Method Detail
-
doOperation
public OUT doOperation(OperationChain<OUT> operationChain, Context context, Store store) throws OperationException
Description copied from interface:OutputOperationHandler
Execute the givenOutput
operation.- Specified by:
doOperation
in interfaceOperationHandler<OUT>
- Specified by:
doOperation
in interfaceOutputOperationHandler<OperationChain<OUT>,OUT>
- Parameters:
operationChain
- 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
-
prepareOperationChain
public <O> OperationChain<O> prepareOperationChain(OperationChain<O> operationChain, Context context, Store store)
-
-