Class ReduceHandler<T>
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.handler.ReduceHandler<T>
-
- Type Parameters:
T
- The object type of the input object
- All Implemented Interfaces:
OperationHandler<Reduce<T>>
,OutputOperationHandler<Reduce<T>,T>
public class ReduceHandler<T> extends Object implements OutputOperationHandler<Reduce<T>,T>
-
-
Constructor Summary
Constructors Constructor Description ReduceHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
doOperation(Reduce<T> operation, Context context, Store store)
Handles theReduce
operation.
-
-
-
Method Detail
-
doOperation
public T doOperation(Reduce<T> operation, Context context, Store store) throws OperationException
Handles theReduce
operation. Applies theBinaryOperator
function contained within the Reduce operation and returns the resulting object.- Specified by:
doOperation
in interfaceOperationHandler<T>
- Specified by:
doOperation
in interfaceOutputOperationHandler<Reduce<T>,T>
- 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
-
-