/** * Estimates load starting from the 'start' timestamp, up to the 'end' timestamp. * * @param start * Where to start enumeration. Always bigger or equal to the current time of the execution. * @param plan * This is the execution plan for which we are making a load prediction. Never null. While * this object is still being partially constructed when this method is called, some * of its properties (like {@link MappingWorksheet#item} provide access to more contextual * information. * @since 1.380 */ public Iterable<FutureLoad> predict(MappingWorksheet plan, Computer computer, long start, long end) { // maintain backward compatibility by calling the old signature. return predict(computer,start,end); }
OUTER: for (LoadPredictor lp : loadPredictors) { for (FutureLoad fl : Iterables.limit(lp.predict(this,e.getKey(), now, now + duration),100)) { peak = max(peak,timeline.insert(fl.startTime, fl.startTime+fl.duration, fl.numExecutors)); if (peak>=max) break OUTER;
Timeline timeline = new Timeline(); for (LoadPredictor lp : LoadPredictor.all()) { for (FutureLoad fl : Iterables.limit(lp.predict(worksheet, computer, slot.start, slot.end),100)) { timeline.insert(fl.startTime, fl.startTime+fl.duration, fl.numExecutors);
/** * Estimates load starting from the 'start' timestamp, up to the 'end' timestamp. * * @param start * Where to start enumeration. Always bigger or equal to the current time of the execution. * @param plan * This is the execution plan for which we are making a load prediction. Never null. While * this object is still being partially constructed when this method is called, some * of its properties (like {@link MappingWorksheet#item} provide access to more contextual * information. * @since 1.380 */ public Iterable<FutureLoad> predict(MappingWorksheet plan, Computer computer, long start, long end) { // maintain backward compatibility by calling the old signature. return predict(computer,start,end); }
/** * Estimates load starting from the 'start' timestamp, up to the 'end' timestamp. * * @param start * Where to start enumeration. Always bigger or equal to the current time of the execution. * @param plan * This is the execution plan for which we are making a load prediction. Never null. While * this object is still being partially constructed when this method is called, some * of its properties (like {@link MappingWorksheet#item} provide access to more contextual * information. * @since 1.380 */ public Iterable<FutureLoad> predict(MappingWorksheet plan, Computer computer, long start, long end) { // maintain backward compatibility by calling the old signature. return predict(computer,start,end); }
public Iterable<FutureLoad> superPredict(Computer computer, long start, long end) { return super.predict(computer, start, end); }
public Iterable<FutureLoad> superPredict(MappingWorksheet plan, Computer computer, long start, long end) { return super.predict(plan, computer, start, end); }
/** * Estimates load starting from the 'start' timestamp, up to the 'end' timestamp. * * @param start * Where to start enumeration. Always bigger or equal to the current time of the execution. * @param plan * This is the execution plan for which we are making a load prediction. Never null. While * this object is still being partially constructed when this method is called, some * of its properties (like {@link MappingWorksheet#item} provide access to more contextual * information. * @since 1.380 */ public Iterable<FutureLoad> predict(MappingWorksheet plan, Computer computer, long start, long end) { // maintain backward compatibility by calling the old signature. return predict(computer,start,end); }
/** * Estimates load starting from the 'start' timestamp, up to the 'end' timestamp. * * @param start * Where to start enumeration. Always bigger or equal to the current time of the execution. * @param plan * This is the execution plan for which we are making a load prediction. Never null. While * this object is still being partially constructed when this method is called, some * of its properties (like {@link MappingWorksheet#item} provide access to more contextual * information. * @since 1.380 */ public Iterable<FutureLoad> predict(MappingWorksheet plan, Computer computer, long start, long end) { // maintain backward compatibility by calling the old signature. return predict(computer,start,end); }
/** * Estimates load starting from the 'start' timestamp, up to the 'end' * timestamp. * * @param start Where to start enumeration. Always bigger or equal to the * current time of the execution. * @param plan This is the execution plan for which we are making a load * prediction. Never null. While this object is still being partially * constructed when this method is called, some of its properties (like * {@link MappingWorksheet#item} provide access to more contextual * information. * @since 1.380 */ public Iterable<FutureLoad> predict(MappingWorksheet plan, Computer computer, long start, long end) { // maintain backward compatibility by calling the old signature. return predict(computer, start, end); }
OUTER: for (LoadPredictor lp : loadPredictors) { for (FutureLoad fl : Iterables.limit(lp.predict(this,e.getKey(), now, now + duration),100)) { peak = max(peak,timeline.insert(fl.startTime, fl.startTime+fl.duration, fl.numExecutors)); if (peak>=max) break OUTER;
OUTER: for (LoadPredictor lp : loadPredictors) { for (FutureLoad fl : Iterables.limit(lp.predict(this,e.getKey(), now, now + duration),100)) { peak = max(peak,timeline.insert(fl.startTime, fl.startTime+fl.duration, fl.numExecutors)); if (peak>=max) break OUTER;
OUTER: for (LoadPredictor lp : loadPredictors) { for (FutureLoad fl : Iterables.limit(lp.predict(this,e.getKey(), now, now + duration),100)) { peak = max(peak,timeline.insert(fl.startTime, fl.startTime+fl.duration, fl.numExecutors)); if (peak>=max) break OUTER;
OUTER: for (LoadPredictor lp : loadPredictors) { for (FutureLoad fl : Iterables.limit(lp.predict(this,e.getKey(), now, now + duration),100)) { peak = max(peak,timeline.insert(fl.startTime, fl.startTime+fl.duration, fl.numExecutors)); if (peak>=max) break OUTER;
@Override public Iterable<FutureLoad> predict(Computer computer, long start, long end) { initPython(); if (pexec.isImplemented(1)) { return (Iterable) pexec.execPython("predict", computer, DataConvertor.fromLong(start), DataConvertor.fromLong(end)); } else { return super.predict(computer, start, end); } }
@Override public Iterable<FutureLoad> predict(MappingWorksheet plan, Computer computer, long start, long end) { initPython(); if (pexec.isImplemented(0)) { return (Iterable) pexec.execPython("predict", plan, computer, DataConvertor.fromLong(start), DataConvertor.fromLong(end)); } else { return super.predict(plan, computer, start, end); } }
Timeline timeline = new Timeline(); for (LoadPredictor lp : LoadPredictor.all()) { for (FutureLoad fl : Iterables.limit(lp.predict(worksheet, computer, slot.start, slot.end),100)) { timeline.insert(fl.startTime, fl.startTime+fl.duration, fl.numExecutors);
Timeline timeline = new Timeline(); for (LoadPredictor lp : LoadPredictor.all()) { for (FutureLoad fl : Iterables.limit(lp.predict(worksheet, computer, slot.start, slot.end),100)) { timeline.insert(fl.startTime, fl.startTime+fl.duration, fl.numExecutors);
Timeline timeline = new Timeline(); for (LoadPredictor lp : LoadPredictor.all()) { for (FutureLoad fl : Iterables.limit(lp.predict(worksheet, computer, slot.start, slot.end),100)) { timeline.insert(fl.startTime, fl.startTime+fl.duration, fl.numExecutors);
Timeline timeline = new Timeline(); for (LoadPredictor lp : LoadPredictor.all()) { for (FutureLoad fl : Iterables.limit(lp.predict(worksheet, computer, slot.start, slot.end),100)) { timeline.insert(fl.startTime, fl.startTime+fl.duration, fl.numExecutors);