public class TinkerTextSearchFactory<I,R> extends TinkerServiceRegistry.TinkerServiceFactory<I,R> implements Service<I,R>
Property
s by token/regex.
Demonstrates a Service.Type#Start
service.Modifier and Type | Class and Description |
---|---|
static interface |
TinkerTextSearchFactory.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 |
---|
TinkerTextSearchFactory(TinkerGraph graph) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Services can implement cleanup/shutdown procedures here.
|
Service<I,R> |
createService(boolean isStart,
Map params)
Create a Service call instance.
|
Map |
describeParams()
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.Type |
getType()
Return the
Service.Type of service call. |
addDescribeParams, addRequirements, getName, getRequirements
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, execute, getMaxBarrierSize, getRequirements, isBarrier, isStart, isStreaming
getRequirementsByType
public static final String NAME
public TinkerTextSearchFactory(TinkerGraph graph)
public Service.Type getType()
Service
Service.Type
of service call.public Map describeParams()
Service.ServiceFactory
describeParams
in interface Service.ServiceFactory<I,R>
describeParams
in class TinkerServiceRegistry.TinkerServiceFactory<I,R>
public Set<Service.Type> getSupportedTypes()
Service.ServiceFactory
getSupportedTypes
in interface Service.ServiceFactory<I,R>
public Service<I,R> createService(boolean isStart, Map params)
Service.ServiceFactory
createService
in interface Service.ServiceFactory<I,R>
isStart
- true if the call is being used to start a traversalparams
- the static params provided to service call (if any)public CloseableIterator<R> execute(Service.ServiceCallContext ctx, Map params)
Service
Copyright © 2013–2023 Apache Software Foundation. All rights reserved.