Class AggregateHandler
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.handler.function.AggregateHandler
-
- All Implemented Interfaces:
OperationHandler<Aggregate>,OperationWithSchemaHandler<Aggregate,Iterable<? extends Element>>,OutputOperationHandler<Aggregate,Iterable<? extends Element>>
public class AggregateHandler extends Object implements OutputOperationHandler<Aggregate,Iterable<? extends Element>>, OperationWithSchemaHandler<Aggregate,Iterable<? extends Element>>
-
-
Constructor Summary
Constructors Constructor Description AggregateHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<? extends Element>doOperation(Aggregate operation, Context context, Store store)Execute the givenOutputoperation.Iterable<? extends Element>doOperation(Aggregate operation, Schema schema)
-
-
-
Method Detail
-
doOperation
public Iterable<? extends Element> doOperation(Aggregate operation, Context context, Store store) throws OperationException
Description copied from interface:OutputOperationHandlerExecute the givenOutputoperation.- Specified by:
doOperationin interfaceOperationHandler<Aggregate>- Specified by:
doOperationin interfaceOutputOperationHandler<Aggregate,Iterable<? extends 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
-
doOperation
public Iterable<? extends Element> doOperation(Aggregate operation, Schema schema) throws OperationException
- Specified by:
doOperationin interfaceOperationWithSchemaHandler<Aggregate,Iterable<? extends Element>>- Throws:
OperationException
-
-