Class MapHandler<I,O>
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.handler.MapHandler<I,O>
-
- Type Parameters:
I- The object type of the input objectO- The object type of the output object
- All Implemented Interfaces:
OperationHandler<Map<I,O>>,OutputOperationHandler<Map<I,O>,O>
public class MapHandler<I,O> extends Object implements OutputOperationHandler<Map<I,O>,O>
-
-
Constructor Summary
Constructors Constructor Description MapHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OdoOperation(Map<I,O> operation, Context context, Store store)Handles theMapoperation.
-
-
-
Method Detail
-
doOperation
public O doOperation(Map<I,O> operation, Context context, Store store) throws OperationException
Handles theMapoperation. Applies the function(s) contained within the Map operation and returns the resulting object.- Specified by:
doOperationin interfaceOperationHandler<I>- Specified by:
doOperationin interfaceOutputOperationHandler<I,O>- Parameters:
operation- theOperationto be executedcontext- the operation chain context, containing the user who executed the operationstore- theStorethe operation should be run on- Returns:
- the resulting object from the function
- Throws:
OperationException- if execution of the operation fails
-
-