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>>>
AToMapHandler
handlesToMap
operations by applying the providedElementGenerator
to 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 givenOutput
operation.
-
-
-
Method Detail
-
doOperation
public Iterable<? extends Map<String,Object>> doOperation(ToMap operation, Context context, Store store) throws OperationException
Description copied from interface:OutputOperationHandler
Execute the givenOutput
operation.- Specified by:
doOperation
in interfaceOperationHandler<ToMap>
- Specified by:
doOperation
in interfaceOutputOperationHandler<ToMap,Iterable<? extends Map<String,Object>>>
- Parameters:
operation
- 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
-
-