Class GenerateElementsHandler<OBJ>
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.handler.generate.GenerateElementsHandler<OBJ>
-
- Type Parameters:
OBJ- the type of input objects from the operation.
- All Implemented Interfaces:
OperationHandler<GenerateElements<OBJ>>,OutputOperationHandler<GenerateElements<OBJ>,Iterable<? extends Element>>
public class GenerateElementsHandler<OBJ> extends Object implements OutputOperationHandler<GenerateElements<OBJ>,Iterable<? extends Element>>
AnGenerateElementsHandlerhandlesGenerateElementsoperations. It uses theElementGeneratorfrom the operation to generateElements from the operation input objects.
-
-
Constructor Summary
Constructors Constructor Description GenerateElementsHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<? extends Element>doOperation(GenerateElements<OBJ> operation, Context context, Store store)Execute the givenOutputoperation.
-
-
-
Method Detail
-
doOperation
public Iterable<? extends Element> doOperation(GenerateElements<OBJ> operation, Context context, Store store) throws OperationException
Description copied from interface:OutputOperationHandlerExecute the givenOutputoperation.- Specified by:
doOperationin interfaceOperationHandler<OBJ>- Specified by:
doOperationin interfaceOutputOperationHandler<GenerateElements<OBJ>,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
-
-