public class TinkerDegreeCentralityFactory extends TinkerServiceRegistry.TinkerServiceFactory<Vertex,Long> implements Service<Vertex,Long>
Service.Type#Streaming service.| Modifier and Type | Class and Description |
|---|---|
static interface |
TinkerDegreeCentralityFactory.Params |
Service.DirectoryService<I>, Service.Exceptions, Service.ServiceCallContext, Service.ServiceFactory<I,R>, Service.Type| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
describeParams, graph, name, requirements| Constructor and Description |
|---|
TinkerDegreeCentralityFactory(TinkerGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Services can implement cleanup/shutdown procedures here.
|
Service<Vertex,Long> |
createService(boolean isStart,
Map params)
Create a Service call instance.
|
Map |
describeParams()
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.Type |
getType()
Return the
Service.Type of service call. |
addDescribeParams, addRequirements, getName, getRequirementsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, execute, getMaxBarrierSize, getRequirements, isBarrier, isStart, isStreaminggetRequirementsByTypepublic static final String NAME
public TinkerDegreeCentralityFactory(TinkerGraph graph)
public Service.Type getType()
ServiceService.Type of service call.public Map describeParams()
Service.ServiceFactorydescribeParams in interface Service.ServiceFactory<Vertex,Long>describeParams in class TinkerServiceRegistry.TinkerServiceFactory<Vertex,Long>public Set<Service.Type> getSupportedTypes()
Service.ServiceFactorygetSupportedTypes in interface Service.ServiceFactory<Vertex,Long>public Service<Vertex,Long> createService(boolean isStart, Map params)
Service.ServiceFactorycreateService in interface Service.ServiceFactory<Vertex,Long>isStart - true if the call is being used to start a traversalparams - the static params provided to service call (if any)public CloseableIterator<Long> execute(Service.ServiceCallContext ctx, Traverser.Admin<Vertex> in, Map params)
ServiceCopyright © 2013–2022 Apache Software Foundation. All rights reserved.