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>
AOperationChainHandlerhandlesOperationChains.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPPLY_CHAIN_OPS_TO_ALLContext variable to apply the operation options on the chain to all sub operations
-
Constructor Summary
Constructors Constructor Description OperationChainHandler(OperationChainValidator opChainValidator, List<OperationChainOptimiser> opChainOptimisers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OUTdoOperation(OperationChain<OUT> operationChain, Context context, Store store)Execute the givenOutputoperation.<O> OperationChain<O>prepareOperationChain(OperationChain<O> operationChain, Context context, Store store)
-
-
-
Field Detail
-
APPLY_CHAIN_OPS_TO_ALL
public static final String APPLY_CHAIN_OPS_TO_ALL
Context variable to apply the operation options on the chain to all sub operations- See Also:
- Constant Field Values
-
-
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:OutputOperationHandlerExecute the givenOutputoperation.- Specified by:
doOperationin interfaceOperationHandler<OUT>- Specified by:
doOperationin interfaceOutputOperationHandler<OperationChain<OUT>,OUT>- Parameters:
operationChain- 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
-
prepareOperationChain
public <O> OperationChain<O> prepareOperationChain(OperationChain<O> operationChain, Context context, Store store)
-
-