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 IQueryRuntimeContextprotected static final Stringprotected Map<PConstraint, Set<Integer>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompile(SubPlan plan, Set<PParameter> boundParameters) Compiles a plan ofPOperations to a list of typeListinvalid input: '<ISearchOperation'>protected voidcreateCheck(AggregatorConstraint aggregator, Map<PVariable, Integer> variableMapping) protected voidcreateCheck(ExpressionEvaluation expressionEvaluation, Map<PVariable, Integer> variableMapping) protected voidcreateCheck(Inequality inequality, Map<PVariable, Integer> variableMapping) protected voidcreateCheck(NegativePatternCall negativePatternCall, Map<PVariable, Integer> variableMapping) protected voidcreateCheck(PatternMatchCounter counter, Map<PVariable, Integer> variableMapping) protected abstract voidcreateCheck(TypeFilterConstraint typeConstraint, Map<PVariable, Integer> variableMapping) protected voidcreateCheck(BinaryReflexiveTransitiveClosure binaryTransitiveClosure, Map<PVariable, Integer> variableMapping) protected voidcreateCheck(BinaryTransitiveClosure binaryTransitiveClosure, Map<PVariable, Integer> variableMapping) protected voidcreateCheck(ConstantValue constant, Map<PVariable, Integer> variableMapping) protected voidcreateCheck(PositivePatternCall pCall, Map<PVariable, Integer> variableMapping) protected abstract voidcreateCheck(TypeConstraint typeConstraint, Map<PVariable, Integer> variableMapping) protected voidcreateExtend(AggregatorConstraint aggregator, Map<PVariable, Integer> variableMapping) protected voidcreateExtend(ExpressionEvaluation expressionEvaluation, Map<PVariable, Integer> variableMapping) protected voidcreateExtend(PatternMatchCounter patternMatchCounter, Map<PVariable, Integer> variableMapping) protected voidcreateExtend(BinaryReflexiveTransitiveClosure binaryTransitiveClosure, Map<PVariable, Integer> variableMapping) protected voidcreateExtend(BinaryTransitiveClosure binaryTransitiveClosure, Map<PVariable, Integer> variableMapping) protected voidcreateExtend(ConstantValue constant, Map<PVariable, Integer> variableMapping) protected voidcreateExtend(PositivePatternCall pCall, Map<PVariable, Integer> variableMapping) protected abstract voidcreateExtend(TypeConstraint typeConstraint, Map<PVariable, Integer> variableMapping) protected voidcreateExtendDispatcher(PConstraint pConstraint, Map<PVariable, Integer> variableMapping) protected abstract voidcreateUnaryTypeCheck(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 ofPOperations to a list of typeListinvalid input: '<ISearchOperation'>- Specified by:
compilein 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:IOperationCompilerReplaces previous method returningMatcherReference- Specified by:
getDependenciesin interfaceIOperationCompiler
-
getVariableMappings
- Specified by:
getVariableMappingsin 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)
-