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 TdoOperation(Reduce<T> operation, Context context, Store store)Handles theReduceoperation.
-
-
-
Method Detail
-
doOperation
public T doOperation(Reduce<T> operation, Context context, Store store) throws OperationException
Handles theReduceoperation. Applies theBinaryOperatorfunction contained within the Reduce operation and returns the resulting object.- Specified by:
doOperationin interfaceOperationHandler<T>- Specified by:
doOperationin interfaceOutputOperationHandler<Reduce<T>,T>- 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
-
-