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
FieldsModifier and TypeFieldDescriptionprotected final Mapprotected final AbstractTinkerGraphprotected final Stringprotected final Map<Service.Type,Set<TraverserRequirement>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTinkerServiceFactory(AbstractTinkerGraph graph, String name) -
Method Summary
Modifier and TypeMethodDescriptionaddDescribeParams(Map describeParams) addRequirements(Service.Type type, TraverserRequirement... requirements) Return a description of any service call parameters.getName()Get the name of this service.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, waitMethods inherited from interface org.apache.tinkerpop.gremlin.structure.service.Service.ServiceFactory
close, createService, getRequirementsByType, getSupportedTypes
-
Field Details
-
graph
-
name
-
describeParams
-
requirements
-
-
Constructor Details
-
TinkerServiceFactory
-
-
Method Details
-
getName
Description copied from interface:Service.ServiceFactoryGet the name of this service.- Specified by:
getNamein interfaceService.ServiceFactory<I,R>
-
addDescribeParams
-
addRequirements
public TinkerServiceRegistry.TinkerServiceFactory addRequirements(Service.Type type, TraverserRequirement... requirements) -
getRequirements
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
Description copied from interface:Service.ServiceFactoryReturn a description of any service call parameters.- Specified by:
describeParamsin interfaceService.ServiceFactory<I,R>
-