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.Streaming
service.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TinkerDegreeCentralityFactory.Params
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.service.Service
Service.DirectoryService<I extends Object>, Service.Exceptions, Service.ServiceCallContext, Service.ServiceFactory<I extends Object,R extends Object>, Service.Type
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME
-
Fields inherited from class org.apache.tinkerpop.gremlin.tinkergraph.services.TinkerServiceRegistry.TinkerServiceFactory
describeParams, graph, name, requirements
-
-
Constructor Summary
Constructors Constructor Description TinkerDegreeCentralityFactory(TinkerGraph graph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Service<Vertex,Long>
createService(boolean isStart, Map params)
Map
describeParams()
CloseableIterator<Long>
execute(Service.ServiceCallContext ctx, Traverser.Admin<Vertex> in, Map params)
Set<Service.Type>
getSupportedTypes()
Service.Type
getType()
-
Methods inherited from class org.apache.tinkerpop.gremlin.tinkergraph.services.TinkerServiceRegistry.TinkerServiceFactory
addDescribeParams, addRequirements, getName, getRequirements
-
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 Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TinkerDegreeCentralityFactory
public TinkerDegreeCentralityFactory(TinkerGraph graph)
-
-
Method Detail
-
getType
public Service.Type getType()
-
describeParams
public Map describeParams()
- Specified by:
describeParams
in interfaceService.ServiceFactory<Vertex,Long>
- Overrides:
describeParams
in classTinkerServiceRegistry.TinkerServiceFactory<Vertex,Long>
-
getSupportedTypes
public Set<Service.Type> getSupportedTypes()
- Specified by:
getSupportedTypes
in interfaceService.ServiceFactory<Vertex,Long>
-
createService
public Service<Vertex,Long> createService(boolean isStart, Map params)
- Specified by:
createService
in interfaceService.ServiceFactory<Vertex,Long>
-
execute
public CloseableIterator<Long> execute(Service.ServiceCallContext ctx, Traverser.Admin<Vertex> in, Map params)
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceService<Vertex,Long>
- Specified by:
close
in interfaceService.ServiceFactory<Vertex,Long>
-
-