public abstract class LocalSearchBackend extends java.lang.Object implements IQueryBackend
| Constructor and Description |
|---|
LocalSearchBackend(IQueryBackendContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAdapter(ILocalSearchAdapter adapter) |
void |
dispose()
Disposes the query backend.
|
void |
flushUpdates()
Propagates all pending updates in this query backend.
|
java.util.List<ILocalSearchAdapter> |
getAdapters()
Return a copy of the current adapters
|
IQueryBackendContext |
getBackendContext() |
ICache |
getCache()
Returns the internal cache of the backend
|
IQueryBackendHintProvider |
getHintProvider() |
QueryAnalyzer |
getQueryAnalyzer() |
IQueryResultProvider |
getResultProvider(PQuery query)
Returns a result provider for a given query.
|
IQueryResultProvider |
getResultProvider(PQuery query,
QueryEvaluationHint hints)
Returns a result provider for a given query.
|
ResultProviderRequestor |
getResultProviderRequestor(PQuery query,
QueryEvaluationHint userHints)
Returns a requestor that this backend uses while processing pattern calls from this query.
|
IQueryRuntimeContext |
getRuntimeContext() |
IPlanDescriptor |
getSearchPlan(PQuery query,
java.util.Set<PParameter> adornment)
Returns a search plan for a given query and adornment if such plan is already calculated.
|
protected abstract AbstractLocalSearchResultProvider |
initializeResultProvider(PQuery query,
QueryEvaluationHint hints) |
boolean |
isCaching() |
AbstractLocalSearchResultProvider |
peekExistingResultProvider(PQuery query)
Returns an existing result provider for a given query, if it was previously constructed, returns null otherwise.
|
void |
recomputePlans()
Updates the previously stored search plans for one or more given queries, computing a new set of plans if
necessary The new plans created are the same that would be created by executing prepare on the given query
definitions.
|
void |
recomputePlans(java.util.Collection<PQuery> queries)
Updates the previously stored search plans for one or more given queries, computing a new set of plans if
necessary The new plans created are the same that would be created by executing prepare on the given query
definitions.
|
void |
recomputePlans(PQuery... queries)
Updates the previously stored search plans for one or more given queries, computing a new set of plans if
necessary.
|
void |
removeAdapter(ILocalSearchAdapter adapter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFactorypublic LocalSearchBackend(IQueryBackendContext context)
public void flushUpdates()
IQueryBackendflushUpdates in interface IQueryBackendpublic IQueryResultProvider getResultProvider(PQuery query)
IQueryBackendgetResultProvider in interface IQueryBackendpublic IQueryResultProvider getResultProvider(PQuery query, QueryEvaluationHint hints)
IQueryBackendgetResultProvider in interface IQueryBackendpublic ResultProviderRequestor getResultProviderRequestor(PQuery query, QueryEvaluationHint userHints)
protected abstract AbstractLocalSearchResultProvider initializeResultProvider(PQuery query, QueryEvaluationHint hints)
ViatraQueryRuntimeExceptionpublic void dispose()
IQueryBackenddispose in interface IQueryBackendpublic boolean isCaching()
isCaching in interface IQueryBackendpublic AbstractLocalSearchResultProvider peekExistingResultProvider(PQuery query)
IQueryBackendpeekExistingResultProvider in interface IQueryBackendpublic IQueryRuntimeContext getRuntimeContext()
public QueryAnalyzer getQueryAnalyzer()
public IQueryBackendHintProvider getHintProvider()
public void addAdapter(ILocalSearchAdapter adapter)
public void removeAdapter(ILocalSearchAdapter adapter)
public java.util.List<ILocalSearchAdapter> getAdapters()
public IQueryBackendContext getBackendContext()
public ICache getCache()
public void recomputePlans(PQuery... queries)
public void recomputePlans(java.util.Collection<PQuery> queries)
public void recomputePlans()
public IPlanDescriptor getSearchPlan(PQuery query, java.util.Set<PParameter> adornment)