Class MaxHandler
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.handler.compare.MaxHandler
-
- All Implemented Interfaces:
OperationHandler<Max>,OutputOperationHandler<Max,Element>
public class MaxHandler extends Object implements OutputOperationHandler<Max,Element>
AMaxHandlerhandles theMaxoperation. It uses theComparators instances on the operation to determine the object with the maximum value.
-
-
Constructor Summary
Constructors Constructor Description MaxHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementdoOperation(Max operation, Context context, Store store)Execute the givenOutputoperation.
-
-
-
Method Detail
-
doOperation
public Element doOperation(Max operation, Context context, Store store) throws OperationException
Description copied from interface:OutputOperationHandlerExecute the givenOutputoperation.- Specified by:
doOperationin interfaceOperationHandler<Max>- Specified by:
doOperationin interfaceOutputOperationHandler<Max,Element>- 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
-
-