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>>
AnGenerateObjectsHandler
handlesGenerateObjects
operations. It uses theElementGenerator
from the operation to generate objects of type OBJ from the operation inputElement
s.
-
-
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 givenOutput
operation.
-
-
-
Method Detail
-
doOperation
public Iterable<? extends OBJ> doOperation(GenerateObjects<OBJ> operation, Context context, Store store) throws OperationException
Description copied from interface:OutputOperationHandler
Execute the givenOutput
operation.- Specified by:
doOperation
in interfaceOperationHandler<OBJ>
- Specified by:
doOperation
in interfaceOutputOperationHandler<GenerateObjects<OBJ>,Iterable<? extends OBJ>>
- Parameters:
operation
- theOutput
operation to be executedcontext
- the operation chain context, containing the user who executed the operationstore
- theStore
the operation should be run on- Returns:
- the output for the operation.
- Throws:
OperationException
- thrown if the operation fails
-
-