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 ReteBackendFactoryINSTANCEprotected static intreteThreadsEXPERIMENTAL
-
Constructor Summary
Constructors Constructor Description ReteBackendFactory()Deprecated.Use the staticINSTANCEfield instead
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMatcherCapabilitycalculateRequiredCapability(PQuery query, QueryEvaluationHint hint)Calculate the required capabilities, which are needed to execute the given patternIQueryBackendcreate(IQueryBackendContext context)Creates a newIQueryBackendinstance tied to the given context elements.IQueryBackendcreate(IQueryBackendContext context, boolean deleteAndRederiveEvaluation, TimelyConfiguration timelyConfiguration)booleanequals(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.inthashCode()booleanisCaching()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 staticINSTANCEfield instead
-
-
Method Detail
-
create
public IQueryBackend create(IQueryBackendContext context)
Description copied from interface:IQueryBackendFactoryCreates a newIQueryBackendinstance tied to the given context elements.- Specified by:
createin 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:IQueryBackendFactoryThe backend instances created by this factory are guaranteed to conform to the returned class.- Specified by:
getBackendClassin interfaceIQueryBackendFactory
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
calculateRequiredCapability
public IMatcherCapability calculateRequiredCapability(PQuery query, QueryEvaluationHint hint)
Description copied from interface:IQueryBackendFactoryCalculate the required capabilities, which are needed to execute the given pattern- Specified by:
calculateRequiredCapabilityin interfaceIQueryBackendFactory- Since:
- 1.4
-
isCaching
public boolean isCaching()
Description copied from interface:IQueryBackendFactoryReturns whether the current backend is caching- Specified by:
isCachingin interfaceIQueryBackendFactory
-
-