Class TinkerDegreeCentralityFactory
java.lang.Object
org.apache.tinkerpop.gremlin.tinkergraph.services.TinkerServiceRegistry.TinkerServiceFactory<Vertex,Long>
org.apache.tinkerpop.gremlin.tinkergraph.services.TinkerDegreeCentralityFactory
- All Implemented Interfaces:
AutoCloseable,Service<Vertex,,Long> Service.ServiceFactory<Vertex,Long>
public class TinkerDegreeCentralityFactory
extends TinkerServiceRegistry.TinkerServiceFactory<Vertex,Long>
implements Service<Vertex,Long>
Count the IN/OUT/BOTH edges for a set of vertices. Demonstrates a
Service.Type.Streaming service.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.service.Service
Service.DirectoryService<I>, Service.Exceptions, Service.ServiceCallContext, Service.ServiceFactory<I,R>, Service.Type -
Field Summary
FieldsFields inherited from class org.apache.tinkerpop.gremlin.tinkergraph.services.TinkerServiceRegistry.TinkerServiceFactory
describeParams, graph, name, requirements -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Services can implement cleanup/shutdown procedures here.createService(boolean isStart, Map params) Create a Service call instance.Return a description of any service call parameters.execute(Service.ServiceCallContext ctx, Traverser.Admin<Vertex> in, Map params) Execute a Streaming service call with one upstream input.Get the execution modes that it supports.getType()Return theService.Typeof service call.Methods inherited from class org.apache.tinkerpop.gremlin.tinkergraph.services.TinkerServiceRegistry.TinkerServiceFactory
addDescribeParams, addRequirements, getName, getRequirementsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.structure.service.Service
execute, execute, getMaxBarrierSize, getRequirements, isBarrier, isStart, isStreamingMethods inherited from interface org.apache.tinkerpop.gremlin.structure.service.Service.ServiceFactory
getRequirementsByType
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
TinkerDegreeCentralityFactory
-
-
Method Details
-
getType
Description copied from interface:ServiceReturn theService.Typeof service call. -
describeParams
Description copied from interface:Service.ServiceFactoryReturn a description of any service call parameters.- Specified by:
describeParamsin interfaceService.ServiceFactory<Vertex,Long> - Overrides:
describeParamsin classTinkerServiceRegistry.TinkerServiceFactory<Vertex,Long>
-
getSupportedTypes
Description copied from interface:Service.ServiceFactoryGet the execution modes that it supports.- Specified by:
getSupportedTypesin interfaceService.ServiceFactory<Vertex,Long>
-
createService
Description copied from interface:Service.ServiceFactoryCreate a Service call instance.- Specified by:
createServicein interfaceService.ServiceFactory<Vertex,Long> - Parameters:
isStart- true if the call is being used to start a traversalparams- the static params provided to service call (if any)- Returns:
- the service call instance
-
execute
public CloseableIterator<Long> execute(Service.ServiceCallContext ctx, Traverser.Admin<Vertex> in, Map params) Description copied from interface:ServiceExecute a Streaming service call with one upstream input. -
close
public void close()Description copied from interface:ServiceServices can implement cleanup/shutdown procedures here.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceService<Vertex,Long> - Specified by:
closein interfaceService.ServiceFactory<Vertex,Long>
-