Interface IQueryBackendFactory
public interface IQueryBackendFactory
A Query Backend Factory identifies a query evaluator implementation, and can create an evaluator instance (an
 
IQueryBackend) tied to a specific Refinery Interpreter engine upon request.
 The factory is used as a lookup key for the backend instance, therefore implementors should either be singletons, or implement equals() / hashCode() accordingly.
- 
Method Summary
Modifier and TypeMethodDescriptioncalculateRequiredCapability(PQuery query, QueryEvaluationHint hint) Calculate the required capabilities, which are needed to execute the given patterncreate(IQueryBackendContext context) Creates a newIQueryBackendinstance tied to the given context elements.Class<? extends IQueryBackend> The backend instances created by this factory are guaranteed to conform to the returned class.booleanReturns whether the current backend is caching 
- 
Method Details
- 
create
Creates a newIQueryBackendinstance tied to the given context elements.- Returns:
 - an instance of the class returned by 
getBackendClass()that operates in the given context. - Since:
 - 1.5
 
 - 
getBackendClass
Class<? extends IQueryBackend> getBackendClass()The backend instances created by this factory are guaranteed to conform to the returned class. - 
calculateRequiredCapability
Calculate the required capabilities, which are needed to execute the given pattern- Since:
 - 1.4
 
 - 
isCaching
boolean isCaching()Returns whether the current backend is caching- Since:
 - 2.0
 
 
 -