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>>
AnGenerateElementsHandler
handlesGenerateElements
operations. It uses theElementGenerator
from the operation to generateElement
s 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 givenOutput
operation.
-
-
-
Method Detail
-
doOperation
public Iterable<? extends Element> doOperation(GenerateElements<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<GenerateElements<OBJ>,Iterable<? extends Element>>
- 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
-
-