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