Class PartialRecallExecutionEngine

  • All Implemented Interfaces:
    IExecutionEngine

    public class PartialRecallExecutionEngine
    extends SimpleExecutionEngine
    Implements the partial recall execution engine class. The idea is that the engine gets as input a link specification and a planner type, finds a subsumed link specification that achieves the lowest expected run time while achieving at least a predefined excepted recall. Then the partial recall execution engine executes the independent parts of the plan returned from the planner sequentially and returns a mapping.
    Version:
    1.0
    Author:
    Kleanthi Georgala (georgala@informatik.uni-leipzig.de)
    • Constructor Detail

      • PartialRecallExecutionEngine

        public PartialRecallExecutionEngine​(ACache source,
                                            ACache target,
                                            String sourceVar,
                                            String targetVar,
                                            long maxOpt,
                                            double k)
        Constructor for the partial recall execution engine.
        Parameters:
        source - Source cache
        target - Target cache
        sourceVar - Source variable
        targetVar - Target variable
        maxOpt - , optimization time constraint
        k - , expected selectivity
    • Method Detail

      • execute

        public AMapping execute​(LinkSpecification spec,
                                IPlanner planner)
        Description copied from class: SimpleExecutionEngine
        Executes a link specification. The execution engine chooses which execute function is going to be invoked given the planner. For the Canonical and Helios planner, the execution of link specifications has been modeled as a linear process wherein a LS is potentially first rewritten, planned and finally executed. Subsequently, the plan never changes and is simply executed. For the Dynamic planner, we enable a flow of information from the execution engine back to the planner, that uses intermediary execution results to improve plans generated previously.
        Specified by:
        execute in interface IExecutionEngine
        Overrides:
        execute in class SimpleExecutionEngine
        Parameters:
        spec - The link specification, after it was re-written
        planner - The chosen planner
        Returns:
        The mapping obtained from executing the plan of the input link specification