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 aService.Type.Streamingservice.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceTinkerDegreeCentralityFactory.Params- 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.service.ServiceService.DirectoryService<I>, Service.Exceptions, Service.ServiceCallContext, Service.ServiceFactory<I,R>, Service.Type
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static StringNAME- 
Fields inherited from class org.apache.tinkerpop.gremlin.tinkergraph.services.TinkerServiceRegistry.TinkerServiceFactorydescribeParams, graph, name, requirements
 
- 
 - 
Constructor SummaryConstructors Constructor Description TinkerDegreeCentralityFactory(AbstractTinkerGraph graph)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Services can implement cleanup/shutdown procedures here.Service<Vertex,Long>createService(boolean isStart, Map params)Create a Service call instance.MapdescribeParams()Return a description of any service call parameters.CloseableIterator<Long>execute(Service.ServiceCallContext ctx, Traverser.Admin<Vertex> in, Map params)Execute a Streaming service call with one upstream input.Set<Service.Type>getSupportedTypes()Get the execution modes that it supports.Service.TypegetType()Return theService.Typeof service call.- 
Methods inherited from class org.apache.tinkerpop.gremlin.tinkergraph.services.TinkerServiceRegistry.TinkerServiceFactoryaddDescribeParams, addRequirements, getName, getRequirements
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.service.Serviceexecute, execute, getMaxBarrierSize, getRequirements, isBarrier, isStart, isStreaming
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.service.Service.ServiceFactorygetRequirementsByType
 
- 
 
- 
- 
- 
Field Detail- 
NAMEpublic static final String NAME - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
TinkerDegreeCentralityFactorypublic TinkerDegreeCentralityFactory(AbstractTinkerGraph graph) 
 
- 
 - 
Method Detail- 
getTypepublic Service.Type getType() Description copied from interface:ServiceReturn theService.Typeof service call.
 - 
describeParamspublic Map describeParams() Description copied from interface:Service.ServiceFactoryReturn a description of any service call parameters.- Specified by:
- describeParamsin interface- Service.ServiceFactory<Vertex,Long>
- Overrides:
- describeParamsin class- TinkerServiceRegistry.TinkerServiceFactory<Vertex,Long>
 
 - 
getSupportedTypespublic Set<Service.Type> getSupportedTypes() Description copied from interface:Service.ServiceFactoryGet the execution modes that it supports.- Specified by:
- getSupportedTypesin interface- Service.ServiceFactory<Vertex,Long>
 
 - 
createServicepublic Service<Vertex,Long> createService(boolean isStart, Map params) Description copied from interface:Service.ServiceFactoryCreate a Service call instance.- Specified by:
- createServicein interface- Service.ServiceFactory<Vertex,Long>
- Parameters:
- isStart- true if the call is being used to start a traversal
- params- the static params provided to service call (if any)
- Returns:
- the service call instance
 
 - 
executepublic 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.
 
- 
 
-