Class GafferPopNamedOperationService<I,​R>

  • Type Parameters:
    I - Ignored
    R - 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 Operations

    This 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
    • 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()  
      • Methods inherited from interface org.apache.tinkerpop.gremlin.structure.service.Service

        close, execute, execute, getMaxBarrierSize, getRequirements, isBarrier, isStart, isStreaming
    • Constructor Detail

      • GafferPopNamedOperationService

        public GafferPopNamedOperationService​(GafferPopGraph graph)
    • Method Detail

      • getType

        public org.apache.tinkerpop.gremlin.structure.service.Service.Type getType()
        Specified by:
        getType in interface org.apache.tinkerpop.gremlin.structure.service.Service<I,​R>
      • 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 interface org.apache.tinkerpop.gremlin.structure.service.Service<I,​R>
        Parameters:
        ctx - Unused
        params - 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