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 O
doOperation(Map<I,O> operation, Context context, Store store)
Handles theMap
operation.
-
-
-
Method Detail
-
doOperation
public O doOperation(Map<I,O> operation, Context context, Store store) throws OperationException
Handles theMap
operation. Applies the function(s) contained within the Map operation and returns the resulting object.- Specified by:
doOperation
in interfaceOperationHandler<I>
- Specified by:
doOperation
in interfaceOutputOperationHandler<I,O>
- Parameters:
operation
- theOperation
to be executedcontext
- the operation chain context, containing the user who executed the operationstore
- theStore
the operation should be run on- Returns:
- the resulting object from the function
- Throws:
OperationException
- if execution of the operation fails
-
-