Class ISearchContext.SearchContext
java.lang.Object
tools.refinery.interpreter.localsearch.matcher.ISearchContext.SearchContext
- All Implemented Interfaces:
ISearchContext
- Enclosing interface:
ISearchContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface tools.refinery.interpreter.localsearch.matcher.ISearchContext
ISearchContext.SearchContext -
Constructor Summary
ConstructorsConstructorDescriptionSearchContext(IQueryBackendContext backendContext, ICache backendLevelCache, ResultProviderRequestor resultProviderRequestor) Initializes a search context using an arbitrary backend context -
Method Summary
Modifier and TypeMethodDescription<T> TaccessBackendLevelCache(Object key, 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.LoggerReturns the engine-specific loggergetMatcher(CallWithAdornment dependency) Returns a matcher for a selected query specification.Provides access to the generic query runtime context of the current engine
-
Constructor Details
-
SearchContext
public SearchContext(IQueryBackendContext backendContext, ICache backendLevelCache, ResultProviderRequestor resultProviderRequestor) Initializes a search context using an arbitrary backend context
-
-
Method Details
-
getMatcher
Description copied from interface:ISearchContextReturns a matcher for a selected query specification.- Specified by:
getMatcherin interfaceISearchContext- Throws:
InterpreterRuntimeException- Since:
- 2.1
-
accessBackendLevelCache
public <T> T accessBackendLevelCache(Object key, 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
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
-