Class ToMapHandler
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.handler.output.ToMapHandler
-
- All Implemented Interfaces:
OperationHandler<ToMap>,OutputOperationHandler<ToMap,Iterable<? extends Map<String,Object>>>
public class ToMapHandler extends Object implements OutputOperationHandler<ToMap,Iterable<? extends Map<String,Object>>>
AToMapHandlerhandlesToMapoperations by applying the providedElementGeneratorto each item in the inputIterable.
-
-
Constructor Summary
Constructors Constructor Description ToMapHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<? extends Map<String,Object>>doOperation(ToMap operation, Context context, Store store)Execute the givenOutputoperation.
-
-
-
Method Detail
-
doOperation
public Iterable<? extends Map<String,Object>> doOperation(ToMap operation, Context context, Store store) throws OperationException
Description copied from interface:OutputOperationHandlerExecute the givenOutputoperation.- Specified by:
doOperationin interfaceOperationHandler<ToMap>- Specified by:
doOperationin interfaceOutputOperationHandler<ToMap,Iterable<? extends Map<String,Object>>>- Parameters:
operation- 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
-
-