Class TinkerTextSearchFactory<I,R>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.tinkergraph.services.TinkerServiceRegistry.TinkerServiceFactory<I,R>
-
- org.apache.tinkerpop.gremlin.tinkergraph.services.TinkerTextSearchFactory<I,R>
-
- All Implemented Interfaces:
AutoCloseable,Service<I,R>,Service.ServiceFactory<I,R>
public class TinkerTextSearchFactory<I,R> extends TinkerServiceRegistry.TinkerServiceFactory<I,R> implements Service<I,R>
Inefficient text search implementation (scan+filter), searches forPropertys by token/regex. Demonstrates aService.Type.Startservice.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTinkerTextSearchFactory.Params-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.service.Service
Service.DirectoryService<I>, Service.Exceptions, Service.ServiceCallContext, Service.ServiceFactory<I,R>, Service.Type
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAME-
Fields inherited from class org.apache.tinkerpop.gremlin.tinkergraph.services.TinkerServiceRegistry.TinkerServiceFactory
describeParams, graph, name, requirements
-
-
Constructor Summary
Constructors Constructor Description TinkerTextSearchFactory(AbstractTinkerGraph graph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Services can implement cleanup/shutdown procedures here.Service<I,R>createService(boolean isStart, Map params)Create a Service call instance.MapdescribeParams()Return a description of any service call parameters.CloseableIterator<R>execute(Service.ServiceCallContext ctx, Map params)Execute a Start service call.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.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
-
TinkerTextSearchFactory
public TinkerTextSearchFactory(AbstractTinkerGraph graph)
-
-
Method Detail
-
getType
public Service.Type getType()
Description copied from interface:ServiceReturn theService.Typeof service call.
-
describeParams
public Map describeParams()
Description copied from interface:Service.ServiceFactoryReturn a description of any service call parameters.- Specified by:
describeParamsin interfaceService.ServiceFactory<I,R>- Overrides:
describeParamsin classTinkerServiceRegistry.TinkerServiceFactory<I,R>
-
getSupportedTypes
public Set<Service.Type> getSupportedTypes()
Description copied from interface:Service.ServiceFactoryGet the execution modes that it supports.- Specified by:
getSupportedTypesin interfaceService.ServiceFactory<I,R>
-
createService
public Service<I,R> createService(boolean isStart, Map params)
Description copied from interface:Service.ServiceFactoryCreate a Service call instance.- Specified by:
createServicein interfaceService.ServiceFactory<I,R>- Parameters:
isStart- true if the call is being used to start a traversalparams- the static params provided to service call (if any)- Returns:
- the service call instance
-
execute
public CloseableIterator<R> execute(Service.ServiceCallContext ctx, Map params)
Description copied from interface:ServiceExecute a Start service call.
-
-