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
|
com.google.common.collect.Table<org.eclipse.emf.ecore.EDataType,org.eclipse.emf.ecore.EClass,java.util.Set<org.eclipse.emf.ecore.EAttribute>> |
geteAttributesByTypeForEClass()
Deprecated.
use the general caching mechanism instead
|
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.
|
IQueryRuntimeContext |
getRuntimeContext() |
protected abstract AbstractLocalSearchResultProvider |
initializeResultProvider(PQuery query,
QueryEvaluationHint hints) |
boolean |
isCaching() |
IQueryResultProvider |
peekExistingResultProvider(PQuery query)
Returns an existing result provider for a given query, if it was previously constructed, returns null otherwise.
|
void |
removeAdapter(ILocalSearchAdapter adapter) |
public LocalSearchBackend(IQueryBackendContext context)
public void flushUpdates()
IQueryBackend
flushUpdates
in interface IQueryBackend
public IQueryResultProvider getResultProvider(PQuery query) throws QueryProcessingException
IQueryBackend
getResultProvider
in interface IQueryBackend
QueryProcessingException
public IQueryResultProvider getResultProvider(PQuery query, QueryEvaluationHint hints) throws QueryProcessingException
IQueryBackend
getResultProvider
in interface IQueryBackend
QueryProcessingException
protected abstract AbstractLocalSearchResultProvider initializeResultProvider(PQuery query, QueryEvaluationHint hints) throws QueryProcessingException
QueryProcessingException
public void dispose()
IQueryBackend
dispose
in interface IQueryBackend
public boolean isCaching()
isCaching
in interface IQueryBackend
public IQueryResultProvider peekExistingResultProvider(PQuery query)
IQueryBackend
peekExistingResultProvider
in interface IQueryBackend
@Deprecated public com.google.common.collect.Table<org.eclipse.emf.ecore.EDataType,org.eclipse.emf.ecore.EClass,java.util.Set<org.eclipse.emf.ecore.EAttribute>> geteAttributesByTypeForEClass()
public 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()