Class SqlgDegreeCentralityFactory

java.lang.Object
org.umlg.sqlg.services.SqlgServiceRegistry.SqlgServiceFactory<org.apache.tinkerpop.gremlin.structure.Vertex,Long>
org.umlg.sqlg.services.SqlgDegreeCentralityFactory
All Implemented Interfaces:
AutoCloseable, org.apache.tinkerpop.gremlin.structure.service.Service<org.apache.tinkerpop.gremlin.structure.Vertex,Long>, org.apache.tinkerpop.gremlin.structure.service.Service.ServiceFactory<org.apache.tinkerpop.gremlin.structure.Vertex,Long>

public class SqlgDegreeCentralityFactory extends SqlgServiceRegistry.SqlgServiceFactory<org.apache.tinkerpop.gremlin.structure.Vertex,Long> implements org.apache.tinkerpop.gremlin.structure.service.Service<org.apache.tinkerpop.gremlin.structure.Vertex,Long>
Count the IN/OUT/BOTH edges for a set of vertices. Demonstrates a Service.Type.Streaming service.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
     

    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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.umlg.sqlg.services.SqlgServiceRegistry.SqlgServiceFactory

    describeParams, graph, name, requirements
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.apache.tinkerpop.gremlin.structure.service.Service<org.apache.tinkerpop.gremlin.structure.Vertex,Long>
    createService(boolean isStart, Map params)
     
     
    org.apache.tinkerpop.gremlin.structure.util.CloseableIterator<Long>
    execute(org.apache.tinkerpop.gremlin.structure.service.Service.ServiceCallContext ctx, org.apache.tinkerpop.gremlin.process.traversal.Traverser.Admin<org.apache.tinkerpop.gremlin.structure.Vertex> in, Map params)
     
    Set<org.apache.tinkerpop.gremlin.structure.service.Service.Type>
     
    org.apache.tinkerpop.gremlin.structure.service.Service.Type
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.tinkerpop.gremlin.structure.service.Service

    execute, execute, getMaxBarrierSize, getRequirements, isBarrier, isStart, isStreaming

    Methods inherited from interface org.apache.tinkerpop.gremlin.structure.service.Service.ServiceFactory

    getRequirementsByType
  • Field Details

  • Constructor Details

    • SqlgDegreeCentralityFactory

      public SqlgDegreeCentralityFactory(SqlgGraph graph)
  • Method Details

    • getType

      public org.apache.tinkerpop.gremlin.structure.service.Service.Type getType()
      Specified by:
      getType in interface org.apache.tinkerpop.gremlin.structure.service.Service<org.apache.tinkerpop.gremlin.structure.Vertex,Long>
    • describeParams

      public Map describeParams()
      Specified by:
      describeParams in interface org.apache.tinkerpop.gremlin.structure.service.Service.ServiceFactory<org.apache.tinkerpop.gremlin.structure.Vertex,Long>
      Overrides:
      describeParams in class SqlgServiceRegistry.SqlgServiceFactory<org.apache.tinkerpop.gremlin.structure.Vertex,Long>
    • getSupportedTypes

      public Set<org.apache.tinkerpop.gremlin.structure.service.Service.Type> getSupportedTypes()
      Specified by:
      getSupportedTypes in interface org.apache.tinkerpop.gremlin.structure.service.Service.ServiceFactory<org.apache.tinkerpop.gremlin.structure.Vertex,Long>
    • createService

      public org.apache.tinkerpop.gremlin.structure.service.Service<org.apache.tinkerpop.gremlin.structure.Vertex,Long> createService(boolean isStart, Map params)
      Specified by:
      createService in interface org.apache.tinkerpop.gremlin.structure.service.Service.ServiceFactory<org.apache.tinkerpop.gremlin.structure.Vertex,Long>
    • execute

      public org.apache.tinkerpop.gremlin.structure.util.CloseableIterator<Long> execute(org.apache.tinkerpop.gremlin.structure.service.Service.ServiceCallContext ctx, org.apache.tinkerpop.gremlin.process.traversal.Traverser.Admin<org.apache.tinkerpop.gremlin.structure.Vertex> in, Map params)
      Specified by:
      execute in interface org.apache.tinkerpop.gremlin.structure.service.Service<org.apache.tinkerpop.gremlin.structure.Vertex,Long>
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.apache.tinkerpop.gremlin.structure.service.Service<org.apache.tinkerpop.gremlin.structure.Vertex,Long>
      Specified by:
      close in interface org.apache.tinkerpop.gremlin.structure.service.Service.ServiceFactory<org.apache.tinkerpop.gremlin.structure.Vertex,Long>