Class GafferPopNamedOperationService<I,R>
- java.lang.Object
-
- uk.gov.gchq.gaffer.tinkerpop.service.GafferPopNamedOperationService<I,R>
-
- Type Parameters:
I
- IgnoredR
- Ignored
- All Implemented Interfaces:
AutoCloseable
,org.apache.tinkerpop.gremlin.structure.service.Service<I,R>
public class GafferPopNamedOperationService<I,R> extends Object implements org.apache.tinkerpop.gremlin.structure.service.Service<I,R>
Service for running Gaffer Named OperationsThis service should be called at the start of a traversal.
- See Also:
- Tinkerpop Call Step Documentation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.service.Service
org.apache.tinkerpop.gremlin.structure.service.Service.DirectoryService<I extends Object>, org.apache.tinkerpop.gremlin.structure.service.Service.Exceptions, org.apache.tinkerpop.gremlin.structure.service.Service.ServiceCallContext, org.apache.tinkerpop.gremlin.structure.service.Service.ServiceFactory<I extends Object,R extends Object>, org.apache.tinkerpop.gremlin.structure.service.Service.Type
-
-
Constructor Summary
Constructors Constructor Description GafferPopNamedOperationService(GafferPopGraph graph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.tinkerpop.gremlin.structure.util.CloseableIterator<R>
execute(org.apache.tinkerpop.gremlin.structure.service.Service.ServiceCallContext ctx, Map params)
Executes the Service, either calling an existing Named Operation or adding a new Named Operation.org.apache.tinkerpop.gremlin.structure.service.Service.Type
getType()
-
-
-
Constructor Detail
-
GafferPopNamedOperationService
public GafferPopNamedOperationService(GafferPopGraph graph)
-
-
Method Detail
-
getType
public org.apache.tinkerpop.gremlin.structure.service.Service.Type getType()
-
execute
public org.apache.tinkerpop.gremlin.structure.util.CloseableIterator<R> execute(org.apache.tinkerpop.gremlin.structure.service.Service.ServiceCallContext ctx, Map params)
Executes the Service, either calling an existing Named Operation or adding a new Named Operation.- Specified by:
execute
in interfaceorg.apache.tinkerpop.gremlin.structure.service.Service<I,R>
- Parameters:
ctx
- Unusedparams
-Map
containing a key of either "execute" or "add" and value with name to execute or operation chain to add- Returns:
CloseableIterator
with results or empty if adding a Named Operation
-
-