Class AbstractOperationCompiler
java.lang.Object
tools.refinery.interpreter.localsearch.planner.compiler.AbstractOperationCompiler
- All Implemented Interfaces:
IOperationCompiler
- Direct Known Subclasses:
GenericOperationCompiler
- Since:
- 1.7
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Set
<CallWithAdornment> protected List
<ISearchOperation> protected final IQueryRuntimeContext
protected static final String
protected Map
<PConstraint, Set<Integer>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompile
(SubPlan plan, Set<PParameter> boundParameters) Compiles a plan ofPOperation
s to a list of typeListinvalid input: '<ISearchOperation'>
protected void
createCheck
(AggregatorConstraint aggregator, Map<PVariable, Integer> variableMapping) protected void
createCheck
(ExpressionEvaluation expressionEvaluation, Map<PVariable, Integer> variableMapping) protected void
createCheck
(Inequality inequality, Map<PVariable, Integer> variableMapping) protected void
createCheck
(NegativePatternCall negativePatternCall, Map<PVariable, Integer> variableMapping) protected void
createCheck
(PatternMatchCounter counter, Map<PVariable, Integer> variableMapping) protected abstract void
createCheck
(TypeFilterConstraint typeConstraint, Map<PVariable, Integer> variableMapping) protected void
createCheck
(BinaryReflexiveTransitiveClosure binaryTransitiveClosure, Map<PVariable, Integer> variableMapping) protected void
createCheck
(BinaryTransitiveClosure binaryTransitiveClosure, Map<PVariable, Integer> variableMapping) protected void
createCheck
(ConstantValue constant, Map<PVariable, Integer> variableMapping) protected void
createCheck
(PositivePatternCall pCall, Map<PVariable, Integer> variableMapping) protected abstract void
createCheck
(TypeConstraint typeConstraint, Map<PVariable, Integer> variableMapping) protected void
createExtend
(AggregatorConstraint aggregator, Map<PVariable, Integer> variableMapping) protected void
createExtend
(ExpressionEvaluation expressionEvaluation, Map<PVariable, Integer> variableMapping) protected void
createExtend
(PatternMatchCounter patternMatchCounter, Map<PVariable, Integer> variableMapping) protected void
createExtend
(BinaryReflexiveTransitiveClosure binaryTransitiveClosure, Map<PVariable, Integer> variableMapping) protected void
createExtend
(BinaryTransitiveClosure binaryTransitiveClosure, Map<PVariable, Integer> variableMapping) protected void
createExtend
(ConstantValue constant, Map<PVariable, Integer> variableMapping) protected void
createExtend
(PositivePatternCall pCall, Map<PVariable, Integer> variableMapping) protected abstract void
createExtend
(TypeConstraint typeConstraint, Map<PVariable, Integer> variableMapping) protected void
createExtendDispatcher
(PConstraint pConstraint, Map<PVariable, Integer> variableMapping) protected abstract void
createUnaryTypeCheck
(IInputKey type, int position) Replaces previous method returningMatcherReference
-
Field Details
-
UNSUPPORTED_TYPE_MESSAGE
- See Also:
-
operations
-
dependencies
-
variableBindings
-
runtimeContext
-
-
Constructor Details
-
AbstractOperationCompiler
-
-
Method Details
-
createExtend
protected abstract void createExtend(TypeConstraint typeConstraint, Map<PVariable, Integer> variableMapping) -
createCheck
protected abstract void createCheck(TypeConstraint typeConstraint, Map<PVariable, Integer> variableMapping) - Throws:
InterpreterRuntimeException
-
createCheck
protected abstract void createCheck(TypeFilterConstraint typeConstraint, Map<PVariable, Integer> variableMapping) - Throws:
InterpreterRuntimeException
-
createUnaryTypeCheck
- Throws:
InterpreterRuntimeException
- Since:
- 2.0
-
compile
Compiles a plan ofPOperation
s to a list of typeListinvalid input: '<ISearchOperation'>
- Specified by:
compile
in interfaceIOperationCompiler
- Parameters:
plan
-boundParameters
-- Returns:
- an ordered list of POperations that make up the compiled search plan
- Throws:
InterpreterRuntimeException
-
createExtendDispatcher
protected void createExtendDispatcher(PConstraint pConstraint, Map<PVariable, Integer> variableMapping) -
getDependencies
Description copied from interface:IOperationCompiler
Replaces previous method returningMatcherReference
- Specified by:
getDependencies
in interfaceIOperationCompiler
-
getVariableMappings
- Specified by:
getVariableMappings
in interfaceIOperationCompiler
- Returns:
- the cached variable bindings for the previously created plan
-
createCheck
-
createCheck
-
createCheck
-
createCheck
protected void createCheck(BinaryTransitiveClosure binaryTransitiveClosure, Map<PVariable, Integer> variableMapping) -
createCheck
protected void createCheck(BinaryReflexiveTransitiveClosure binaryTransitiveClosure, Map<PVariable, Integer> variableMapping) - Since:
- 2.0
-
createCheck
protected void createCheck(ExpressionEvaluation expressionEvaluation, Map<PVariable, Integer> variableMapping) -
createCheck
-
createCheck
protected void createCheck(NegativePatternCall negativePatternCall, Map<PVariable, Integer> variableMapping) -
createCheck
-
createExtend
-
createExtend
protected void createExtend(BinaryTransitiveClosure binaryTransitiveClosure, Map<PVariable, Integer> variableMapping) -
createExtend
protected void createExtend(BinaryReflexiveTransitiveClosure binaryTransitiveClosure, Map<PVariable, Integer> variableMapping) - Since:
- 2.0
-
createExtend
-
createExtend
protected void createExtend(ExpressionEvaluation expressionEvaluation, Map<PVariable, Integer> variableMapping) -
createExtend
protected void createExtend(AggregatorConstraint aggregator, Map<PVariable, Integer> variableMapping) -
createExtend
protected void createExtend(PatternMatchCounter patternMatchCounter, Map<PVariable, Integer> variableMapping)
-