Class ReteBackendFactory
- java.lang.Object
-
- org.eclipse.viatra.query.runtime.rete.matcher.ReteBackendFactory
-
- All Implemented Interfaces:
IQueryBackendFactory
- Direct Known Subclasses:
DRedReteBackendFactory
,TimelyReteBackendFactory
public class ReteBackendFactory extends java.lang.Object implements IQueryBackendFactory
-
-
Field Summary
Fields Modifier and Type Field Description static ReteBackendFactory
INSTANCE
protected static int
reteThreads
EXPERIMENTAL
-
Constructor Summary
Constructors Constructor Description ReteBackendFactory()
Deprecated.Use the staticINSTANCE
field instead
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMatcherCapability
calculateRequiredCapability(PQuery query, QueryEvaluationHint hint)
Calculate the required capabilities, which are needed to execute the given patternIQueryBackend
create(IQueryBackendContext context)
Creates a newIQueryBackend
instance tied to the given context elements.IQueryBackend
create(IQueryBackendContext context, boolean deleteAndRederiveEvaluation, TimelyConfiguration timelyConfiguration)
boolean
equals(java.lang.Object obj)
java.lang.Class<? extends IQueryBackend>
getBackendClass()
The backend instances created by this factory are guaranteed to conform to the returned class.int
hashCode()
boolean
isCaching()
Returns whether the current backend is caching
-
-
-
Field Detail
-
reteThreads
protected static final int reteThreads
EXPERIMENTAL- See Also:
- Constant Field Values
-
INSTANCE
public static final ReteBackendFactory INSTANCE
- Since:
- 2.0
-
-
Constructor Detail
-
ReteBackendFactory
@Deprecated public ReteBackendFactory()
Deprecated.Use the staticINSTANCE
field instead
-
-
Method Detail
-
create
public IQueryBackend create(IQueryBackendContext context)
Description copied from interface:IQueryBackendFactory
Creates a newIQueryBackend
instance tied to the given context elements.- Specified by:
create
in interfaceIQueryBackendFactory
- Returns:
- an instance of the class returned by
IQueryBackendFactory.getBackendClass()
that operates in the given context. - Since:
- 1.5
-
create
public IQueryBackend create(IQueryBackendContext context, boolean deleteAndRederiveEvaluation, TimelyConfiguration timelyConfiguration)
- Since:
- 2.4
-
getBackendClass
public java.lang.Class<? extends IQueryBackend> getBackendClass()
Description copied from interface:IQueryBackendFactory
The backend instances created by this factory are guaranteed to conform to the returned class.- Specified by:
getBackendClass
in interfaceIQueryBackendFactory
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
calculateRequiredCapability
public IMatcherCapability calculateRequiredCapability(PQuery query, QueryEvaluationHint hint)
Description copied from interface:IQueryBackendFactory
Calculate the required capabilities, which are needed to execute the given pattern- Specified by:
calculateRequiredCapability
in interfaceIQueryBackendFactory
- Since:
- 1.4
-
isCaching
public boolean isCaching()
Description copied from interface:IQueryBackendFactory
Returns whether the current backend is caching- Specified by:
isCaching
in interfaceIQueryBackendFactory
-
-