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 ISearchContext
public IQueryResultProvider getMatcher(CallWithAdornment dependency)
ISearchContext
getMatcher
in interface ISearchContext
ViatraQueryRuntimeException
public <T> T accessBackendLevelCache(java.lang.Object key, java.lang.Class<? extends T> clazz, IProvider<T> valueProvider)
ISearchContext
accessBackendLevelCache
in interface ISearchContext
public IQueryRuntimeContext getRuntimeContext()
ISearchContext
getRuntimeContext
in interface ISearchContext
public org.apache.log4j.Logger getLogger()
ISearchContext
getLogger
in interface ISearchContext