public static class ISearchContext.SearchContext extends java.lang.Object implements ISearchContext
ISearchContext.SearchContext| Constructor and Description |
|---|
SearchContext(IQueryBackendContext backendContext,
ICache backendLevelCache,
ResultProviderRequestor resultProviderRequestor)
Initializes a search context using an arbitrary backend context
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accessBackendLevelCache(java.lang.Object key,
java.lang.Class<? extends T> clazz,
IProvider<T> valueProvider)
Allows search operations to cache values through the entire lifecycle of the local search backend.
|
org.apache.log4j.Logger |
getLogger()
Returns the engine-specific logger
|
IQueryResultProvider |
getMatcher(CallWithAdornment dependency)
Returns a matcher for a selected query specification.
|
IQueryRuntimeContext |
getRuntimeContext()
Provides access to the generic query runtime context of the current engine
|
void |
registerObservedTypes(java.util.Set<org.eclipse.emf.ecore.EClass> classes,
java.util.Set<org.eclipse.emf.ecore.EDataType> dataTypes,
java.util.Set<org.eclipse.emf.ecore.EStructuralFeature> features) |
public SearchContext(IQueryBackendContext backendContext, ICache backendLevelCache, ResultProviderRequestor resultProviderRequestor)
public void registerObservedTypes(java.util.Set<org.eclipse.emf.ecore.EClass> classes,
java.util.Set<org.eclipse.emf.ecore.EDataType> dataTypes,
java.util.Set<org.eclipse.emf.ecore.EStructuralFeature> features)
registerObservedTypes in interface ISearchContextpublic IQueryResultProvider getMatcher(CallWithAdornment dependency)
ISearchContextgetMatcher in interface ISearchContextViatraQueryRuntimeExceptionpublic <T> T accessBackendLevelCache(java.lang.Object key,
java.lang.Class<? extends T> clazz,
IProvider<T> valueProvider)
ISearchContextaccessBackendLevelCache in interface ISearchContextpublic IQueryRuntimeContext getRuntimeContext()
ISearchContextgetRuntimeContext in interface ISearchContextpublic org.apache.log4j.Logger getLogger()
ISearchContextgetLogger in interface ISearchContext