Class ISearchContext.SearchContext
- java.lang.Object
-
- org.eclipse.viatra.query.runtime.localsearch.matcher.ISearchContext.SearchContext
-
- All Implemented Interfaces:
ISearchContext
- Enclosing interface:
- ISearchContext
public static class ISearchContext.SearchContext extends java.lang.Object implements ISearchContext
- No Implement:
- This interface is not intended to be implemented by clients.
- No Extend:
- This interface is not intended to be extended by clients.
- No Reference:
- This class is not intended to be referenced by clients.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.viatra.query.runtime.localsearch.matcher.ISearchContext
ISearchContext.SearchContext
-
-
Constructor Summary
Constructors Constructor Description SearchContext(IQueryBackendContext backendContext, ICache backendLevelCache, ResultProviderRequestor resultProviderRequestor)Initializes a search context using an arbitrary backend context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TaccessBackendLevelCache(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.LoggergetLogger()Returns the engine-specific loggerIQueryResultProvidergetMatcher(CallWithAdornment dependency)Returns a matcher for a selected query specification.IQueryRuntimeContextgetRuntimeContext()Provides access to the generic query runtime context of the current enginevoidregisterObservedTypes(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)
-
-
-
Constructor Detail
-
SearchContext
public SearchContext(IQueryBackendContext backendContext, ICache backendLevelCache, ResultProviderRequestor resultProviderRequestor)
Initializes a search context using an arbitrary backend context
-
-
Method Detail
-
registerObservedTypes
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)- Specified by:
registerObservedTypesin interfaceISearchContext
-
getMatcher
public IQueryResultProvider getMatcher(CallWithAdornment dependency)
Description copied from interface:ISearchContextReturns a matcher for a selected query specification.- Specified by:
getMatcherin interfaceISearchContext- Throws:
ViatraQueryRuntimeException- Since:
- 2.1
-
accessBackendLevelCache
public <T> T accessBackendLevelCache(java.lang.Object key, java.lang.Class<? extends T> clazz, IProvider<T> valueProvider)Description copied from interface:ISearchContextAllows search operations to cache values through the entire lifecycle of the local search backend. The values are calculated if not cached before using the given provider, or returned from the cache accordingly.- Specified by:
accessBackendLevelCachein interfaceISearchContext
-
getRuntimeContext
public IQueryRuntimeContext getRuntimeContext()
Description copied from interface:ISearchContextProvides access to the generic query runtime context of the current engine- Specified by:
getRuntimeContextin interfaceISearchContext
-
getLogger
public org.apache.log4j.Logger getLogger()
Description copied from interface:ISearchContextReturns the engine-specific logger- Specified by:
getLoggerin interfaceISearchContext
-
-