Class TinkerServiceRegistry.TinkerServiceFactory<I,R>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.tinkergraph.services.TinkerServiceRegistry.TinkerServiceFactory<I,R>
-
- All Implemented Interfaces:
AutoCloseable,Service.ServiceFactory<I,R>
- Direct Known Subclasses:
TinkerDegreeCentralityFactory,TinkerServiceRegistry.LambdaServiceFactory,TinkerTextSearchFactory
- Enclosing class:
- TinkerServiceRegistry
public abstract static class TinkerServiceRegistry.TinkerServiceFactory<I,R> extends Object implements Service.ServiceFactory<I,R>
-
-
Field Summary
Fields Modifier and Type Field Description protected MapdescribeParamsprotected AbstractTinkerGraphgraphprotected Stringnameprotected Map<Service.Type,Set<TraverserRequirement>>requirements
-
Constructor Summary
Constructors Modifier Constructor Description protectedTinkerServiceFactory(AbstractTinkerGraph graph, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TinkerServiceRegistry.TinkerServiceFactoryaddDescribeParams(Map describeParams)TinkerServiceRegistry.TinkerServiceFactoryaddRequirements(Service.Type type, TraverserRequirement... requirements)MapdescribeParams()Return a description of any service call parameters.StringgetName()Get the name of this service.Set<TraverserRequirement>getRequirements(Service.Type type)Return anyTraverserRequirements necessary for this service call for the supplied executionService.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.ServiceFactory
close, createService, getRequirementsByType, getSupportedTypes
-
-
-
-
Field Detail
-
graph
protected final AbstractTinkerGraph graph
-
name
protected final String name
-
describeParams
protected final Map describeParams
-
requirements
protected final Map<Service.Type,Set<TraverserRequirement>> requirements
-
-
Constructor Detail
-
TinkerServiceFactory
protected TinkerServiceFactory(AbstractTinkerGraph graph, String name)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:Service.ServiceFactoryGet the name of this service.- Specified by:
getNamein interfaceService.ServiceFactory<I,R>
-
addDescribeParams
public TinkerServiceRegistry.TinkerServiceFactory addDescribeParams(Map describeParams)
-
addRequirements
public TinkerServiceRegistry.TinkerServiceFactory addRequirements(Service.Type type, TraverserRequirement... requirements)
-
getRequirements
public Set<TraverserRequirement> getRequirements(Service.Type type)
Description copied from interface:Service.ServiceFactoryReturn anyTraverserRequirements necessary for this service call for the supplied executionService.Type.- Specified by:
getRequirementsin interfaceService.ServiceFactory<I,R>
-
describeParams
public Map describeParams()
Description copied from interface:Service.ServiceFactoryReturn a description of any service call parameters.- Specified by:
describeParamsin interfaceService.ServiceFactory<I,R>
-
-