Class CountHandler<T>
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.handler.CountHandler<T>
-
- All Implemented Interfaces:
OperationHandler<Count<T>>,OutputOperationHandler<Count<T>,Long>
public class CountHandler<T> extends Object implements OutputOperationHandler<Count<T>,Long>
-
-
Constructor Summary
Constructors Constructor Description CountHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongdoOperation(Count operation, Context context, Store store)Execute the givenOutputoperation.
-
-
-
Method Detail
-
doOperation
public Long doOperation(Count operation, Context context, Store store) throws OperationException
Description copied from interface:OutputOperationHandlerExecute the givenOutputoperation.- Specified by:
doOperationin interfaceOperationHandler<T>- Specified by:
doOperationin interfaceOutputOperationHandler<Count<T>,Long>- 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
-
-