public interface IQueryBackendFactory
IQueryBackend) tied to a specific VIATRA Query 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.
| Modifier and Type | Method and Description |
|---|---|
IMatcherCapability |
calculateRequiredCapability(PQuery query,
QueryEvaluationHint hint)
Calculate the required capabilities, which are needed to execute the given pattern
|
IQueryBackend |
create(IQueryBackendContext context)
Creates a new
IQueryBackend instance tied to the given context elements. |
java.lang.Class<? extends IQueryBackend> |
getBackendClass()
The backend instances created by this factory are guaranteed to conform to the returned class.
|
boolean |
isCaching()
Returns whether the current backend is caching
|
IQueryBackend create(IQueryBackendContext context)
IQueryBackend instance tied to the given context elements.getBackendClass() that operates in the given context.java.lang.Class<? extends IQueryBackend> getBackendClass()
IMatcherCapability calculateRequiredCapability(PQuery query, QueryEvaluationHint hint)
boolean isCaching()