# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0.  If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Copyright 1997 - July 2008 CWI, August 2008 - 2016 MonetDB B.V.

module scheduler;
pattern scheduler.choice():void
address RUNchoice
comment "Select the next step in a query memo plan";
pattern scheduler.choice(arg:any...):void
address RUNchoice
comment "Select the next step in a query memo plan";

pattern scheduler.pick(arg:any_1...):any_1
address RUNpickResult
comment "Pick up the first result";

pattern scheduler.volumeCost(a:any):lng
address RUNvolumeCost
comment "A sample cost function based on materialized results";

pattern scheduler.costPrediction(a:any):lng
address RUNcostPrediction
comment "A sample cost prediction function";
