Class OperationService
- java.lang.Object
-
- uk.gov.gchq.gaffer.rest.service.v1.OperationService
-
- All Implemented Interfaces:
IOperationService
public class OperationService extends Object implements IOperationService
An implementation ofIOperationService
. By default it will use a singletonGraph
generated using theGraphFactory
. All operations are simple delegated to the graph. Pre and post operation hooks are available by extending this class and implementing preOperationHook and/or postOperationHook.
-
-
Field Summary
Fields Modifier and Type Field Description com.fasterxml.jackson.databind.ObjectMapper
mapper
-
Constructor Summary
Constructors Constructor Description OperationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addElements(AddElements operation)
Object
execute(Operation operation)
Object
execute(OperationChainDAO opChain)
org.glassfish.jersey.server.ChunkedOutput<String>
executeChunked(Operation operation)
org.glassfish.jersey.server.ChunkedOutput<String>
executeChunkedChain(OperationChainDAO opChain)
Iterable<Element>
generateElements(GenerateElements<Object> operation)
Iterable<Object>
generateObjects(GenerateObjects<Object> operation)
Iterable<EntityId>
getAdjacentIds(GetAdjacentIds operation)
Iterable<Element>
getAllElements(GetAllElements operation)
Iterable<Element>
getElements(GetElements operation)
-
-
-
Method Detail
-
execute
public Object execute(OperationChainDAO opChain)
- Specified by:
execute
in interfaceIOperationService
-
execute
public Object execute(Operation operation)
- Specified by:
execute
in interfaceIOperationService
-
executeChunkedChain
public org.glassfish.jersey.server.ChunkedOutput<String> executeChunkedChain(OperationChainDAO opChain)
- Specified by:
executeChunkedChain
in interfaceIOperationService
-
executeChunked
public org.glassfish.jersey.server.ChunkedOutput<String> executeChunked(Operation operation)
- Specified by:
executeChunked
in interfaceIOperationService
-
generateObjects
public Iterable<Object> generateObjects(GenerateObjects<Object> operation)
- Specified by:
generateObjects
in interfaceIOperationService
-
generateElements
public Iterable<Element> generateElements(GenerateElements<Object> operation)
- Specified by:
generateElements
in interfaceIOperationService
-
getAdjacentIds
public Iterable<EntityId> getAdjacentIds(GetAdjacentIds operation)
- Specified by:
getAdjacentIds
in interfaceIOperationService
-
getAllElements
public Iterable<Element> getAllElements(GetAllElements operation)
- Specified by:
getAllElements
in interfaceIOperationService
-
getElements
public Iterable<Element> getElements(GetElements operation)
- Specified by:
getElements
in interfaceIOperationService
-
addElements
public void addElements(AddElements operation)
- Specified by:
addElements
in interfaceIOperationService
-
-