Examples of Plan


Examples of lupos.optimizations.physical.joinorder.costbasedoptimizer.plan.Plan

      // Does the left and right operand have any initial plans?
      if (currentLeft + currentRight != max || currentLeft == 0 || currentRight == 0){
        return;
      }
      // find the best plans for the left and right operands of the currently considered join by looking into the table for dynamic programming
      final Plan left = bestPlans[currentLeft - 1].get(keyLeft);
      final Plan right = bestPlans[currentRight - 1].get(keyRight);
      final Plan combined = new InnerNodePlan(left.clone(), right.clone());
      this.lockBestPlan.lock();
      try {
        // do we have new best plan for joining the initial plans of the left and right operand?
        final Plan currentBest = bestPlans[max - 1].get(keyLeft + keyRight);
        if (currentBest == null || currentBest.compareTo(combined) > 0){
          bestPlans[max - 1].put(keyLeft + keyRight, combined);
        }
        return;
      } finally {
        this.lockBestPlan.unlock();
View Full Code Here

Examples of org.apache.cassandra.cql.common.Plan

        CqlCompiler compiler = new CqlCompiler();

        try
        {
            logger_.debug("Compiling CQL query ...");
            Plan plan = compiler.compileQuery(query);
            if (plan != null)
            {
                logger_.debug("Executing CQL query ...");           
                return plan.execute();
            }
        }
        catch (Exception e)
        {
            CqlResult result = new CqlResult(null);
View Full Code Here

Examples of org.apache.flink.api.common.Plan

      DeltaIteration<Tuple2<Long, Long>, Tuple2<Long, Long>> iteration = input.iterateDelta(input, 100, 1);
     
      DataSet<Tuple2<Long, Long>> iterEnd = iteration.getWorkset().map(new TestMapper<Tuple2<Long,Long>>());
      iteration.closeWith(iterEnd, iterEnd).print();
     
      Plan p = env.createProgramPlan();
      OptimizedPlan op = compileNoStats(p);
     
      WorksetIterationPlanNode wipn = (WorksetIterationPlanNode) op.getDataSinks().iterator().next().getInput().getSource();
      assertTrue(wipn.getSolutionSetPlanNode().getOutgoingChannels().isEmpty());
     
View Full Code Here

Examples of org.eclipse.orion.server.cf.ds.objects.Plan

      set(application, ManifestConstants.INSTANCES, ManifestUtils.DEFAULT_INSTANCES);
      set(application, ManifestConstants.PATH, ManifestUtils.DEFAULT_PATH);

      /* node.js application require a start command */
      if (application.has(ManifestConstants.COMMAND))
        return new Plan(getId(), getWizardId(), TYPE, manifest);

      InputStream is = null;
      try {

        is = packageStore.openInputStream(EFS.NONE, null);
        JSONObject packageJSON = new JSONObject(new JSONTokener(new InputStreamReader(is)));
        if (packageJSON.has(NodeJSConstants.SCRIPTS)) {
          JSONObject scripts = packageJSON.getJSONObject(NodeJSConstants.SCRIPTS);
          if (scripts.has(NodeJSConstants.START)) {
            application.put(ManifestConstants.COMMAND, scripts.getString(NodeJSConstants.START));
            return new Plan(getId(), getWizardId(), TYPE, manifest);
          }
        }

      } catch (JSONException ex) {
        /* can't parse the package.json, fail */
        return null;

      } finally {
        IOUtilities.safeClose(is);
      }

      /* look for server.js or app.js files */
      IFileStore serverJS = contentLocation.getChild(NodeJSConstants.SERVER_JS);
      if (serverJS.fetchInfo().exists()) {
        application.put(ManifestConstants.COMMAND, NodeJSConstants.NODE_SERVER_JS);
        return new Plan(getId(), getWizardId(), TYPE, manifest);
      }

      IFileStore appJS = contentLocation.getChild(NodeJSConstants.APP_JS);
      if (appJS.fetchInfo().exists()) {
        application.put(ManifestConstants.COMMAND, NodeJSConstants.NODE_APP_JS);
        return new Plan(getId(), getWizardId(), TYPE, manifest);
      }

      /* could not deduce command, mark as required */
      Plan plan = new Plan(getId(), getWizardId(), TYPE, manifest);
      plan.addRequired(ManifestConstants.COMMAND);
      return plan;

    } catch (Exception ex) {
      String msg = NLS.bind("Failed to handle generic deployment plan for {0}", contentLocation.toString()); //$NON-NLS-1$
      logger.error(msg, ex);
View Full Code Here

Examples of org.h2.table.Plan

                        if (i == filters.length - 1) {
                            bestPart = j;
                            break;
                        }
                        list[i] = filters[j];
                        Plan part = new Plan(list, i+1, condition);
                        double costNow = part.calculateCost(session);
                        if (costPart < 0 || costNow < costPart) {
                            costPart = costNow;
                            bestPart = j;
                        }
                    }
View Full Code Here

Examples of org.lealone.dbobject.table.Plan

                        if (i == filters.length - 1) {
                            bestPart = j;
                            break;
                        }
                        list[i] = filters[j];
                        Plan part = new Plan(list, i + 1, condition);
                        double costNow = part.calculateCost(session);
                        if (costPart < 0 || costNow < costPart) {
                            costPart = costNow;
                            bestPart = j;
                        }
                    }
View Full Code Here

Examples of org.lealone.dbobject.table.Plan

            }
        }
    }

    private boolean testPlan(TableFilter[] list) {
        Plan p = new Plan(list, list.length, condition);
        double costNow = p.calculateCost(session);
        if (cost < 0 || costNow < cost) {
            cost = costNow;
            bestPlan = p;
            return true;
        }
View Full Code Here

Examples of org.mmtk.plan.Plan

    public static void main(String[] args)
    {
        VM vm_init = new VM();
        //NoGC pl2 = (NoGC)SelectedPlan.get();
        MS pl2 = (MS)SelectedPlan.get();
        Plan pl = SelectedPlan.ap.global();

        pl2.boot();
        pl.fullyBooted();
        org.apache.HarmonyDRLVM.mm.mmtk.SynchronizedCounter.boot();
        // toss Mmapper.boot(Address.zero(), 0 );
        HeapGrowthManager.boot(Extent.fromInt(1024*1024*1), Extent.fromInt(1024*1024*1) ); //set the java heap very small to force collections

        TestMarkSweep.mc = SelectedPlan.ap.mutator();
View Full Code Here

Examples of org.mmtk.plan.Plan

    {
        VM vm_init = new VM();
        //NoGC pl2 = (NoGC)SelectedPlan.get();
        //MS pl2 = (MS)SelectedPlan.get();
        SS pl2 = (SS)SelectedPlan.get();
        Plan pl = SelectedPlan.ap.global();

        pl2.boot();
        pl.fullyBooted();
        org.apache.HarmonyDRLVM.mm.mmtk.SynchronizedCounter.boot();
        // toss LazyMmapper.boot(Address.zero(), 0 );
        HeapGrowthManager.boot(Extent.fromInt(1024*1024*1), Extent.fromInt(1024*1024*1) ); //set the java heap very small to force collections

        TestSemiSpace.mc = SelectedPlan.ap.mutator();
View Full Code Here

Examples of org.mmtk.plan.Plan

        VM vm_init = new VM();
        //NoGC pl2 = (NoGC)SelectedPlan.get();
        //MS pl2 = (MS)SelectedPlan.get();
        //SS pl2 = (SS)SelectedPlan.get();
        CopyMS pl2 = (CopyMS)SelectedPlan.get();
        Plan pl = SelectedPlan.ap.global();

        pl2.boot();
        pl.fullyBooted();
        org.apache.HarmonyDRLVM.mm.mmtk.SynchronizedCounter.boot();
        // toss LazyMmapper.boot(Address.zero(), 0 );
        HeapGrowthManager.boot(Extent.fromInt(1024*1024*1), Extent.fromInt(1024*1024*1) ); //set the java heap very small to force collections

        TestCopyMS.mc = SelectedPlan.ap.mutator();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.