Class AbstractOperationCompiler
java.lang.Object
tools.refinery.interpreter.localsearch.planner.compiler.AbstractOperationCompiler
- All Implemented Interfaces:
- IOperationCompiler
- Direct Known Subclasses:
- GenericOperationCompiler
- Since:
- 1.7
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Set<CallWithAdornment> protected List<ISearchOperation> protected final IQueryRuntimeContextprotected static final Stringprotected Map<PConstraint, Set<Integer>> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
createExtendprotected abstract void createExtend(TypeConstraint typeConstraint, Map<PVariable, Integer> variableMapping) 
- 
createCheckprotected abstract void createCheck(TypeConstraint typeConstraint, Map<PVariable, Integer> variableMapping) - Throws:
- InterpreterRuntimeException
 
- 
createCheckprotected abstract void createCheck(TypeFilterConstraint typeConstraint, Map<PVariable, Integer> variableMapping) - Throws:
- InterpreterRuntimeException
 
- 
createUnaryTypeCheck- Throws:
- InterpreterRuntimeException
- Since:
- 2.0
 
- 
compileCompiles a plan ofPOperations to a list of typeListinvalid input: '<ISearchOperation'>- Specified by:
- compilein interface- IOperationCompiler
- Parameters:
- plan-
- boundParameters-
- Returns:
- an ordered list of POperations that make up the compiled search plan
- Throws:
- InterpreterRuntimeException
 
- 
createExtendDispatcherprotected void createExtendDispatcher(PConstraint pConstraint, Map<PVariable, Integer> variableMapping) 
- 
getDependenciesDescription copied from interface:IOperationCompilerReplaces previous method returningMatcherReference- Specified by:
- getDependenciesin interface- IOperationCompiler
 
- 
getVariableMappings- Specified by:
- getVariableMappingsin interface- IOperationCompiler
- Returns:
- the cached variable bindings for the previously created plan
 
- 
createCheck
- 
createCheck
- 
createCheck
- 
createCheckprotected void createCheck(BinaryTransitiveClosure binaryTransitiveClosure, Map<PVariable, Integer> variableMapping) 
- 
createCheckprotected void createCheck(BinaryReflexiveTransitiveClosure binaryTransitiveClosure, Map<PVariable, Integer> variableMapping) - Since:
- 2.0
 
- 
createCheckprotected void createCheck(ExpressionEvaluation expressionEvaluation, Map<PVariable, Integer> variableMapping) 
- 
createCheck
- 
createCheckprotected void createCheck(NegativePatternCall negativePatternCall, Map<PVariable, Integer> variableMapping) 
- 
createCheck
- 
createExtend
- 
createExtendprotected void createExtend(BinaryTransitiveClosure binaryTransitiveClosure, Map<PVariable, Integer> variableMapping) 
- 
createExtendprotected void createExtend(BinaryReflexiveTransitiveClosure binaryTransitiveClosure, Map<PVariable, Integer> variableMapping) - Since:
- 2.0
 
- 
createExtend
- 
createExtendprotected void createExtend(ExpressionEvaluation expressionEvaluation, Map<PVariable, Integer> variableMapping) 
- 
createExtendprotected void createExtend(AggregatorConstraint aggregator, Map<PVariable, Integer> variableMapping) 
- 
createExtendprotected void createExtend(PatternMatchCounter patternMatchCounter, Map<PVariable, Integer> variableMapping) 
 
-