Package org.teiid.client.plan

Examples of org.teiid.client.plan.PlanNode


              throw new TeiidSQLException(JDBCPlugin.Util.getString("StatementImpl.show_update_count")); //$NON-NLS-1$
            }
            String show = match.group(1);
            if (show.equalsIgnoreCase("PLAN")) { //$NON-NLS-1$
              List<ArrayList<Object>> records = new ArrayList<ArrayList<Object>>(1);
              PlanNode plan = driverConnection.getCurrentPlanDescription();
              if (plan != null) {
                ArrayList<Object> row = new ArrayList<Object>(3);
                  row.add(DataTypeTransformer.getClob(plan.toString()));
                row.add(new SQLXMLImpl(plan.toXml()));
                row.add(DataTypeTransformer.getClob(driverConnection.getDebugLog()));
                records.add(row);
              }
              createResultSet(records, new String[] {"PLAN_TEXT", "PLAN_XML", "DEBUG_LOG"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
                  new String[] {JDBCSQLTypeInfo.CLOB, JDBCSQLTypeInfo.XML, JDBCSQLTypeInfo.CLOB});
View Full Code Here


        message.setLastRow(100);
        List parameters = new ArrayList();
        parameters.add(new ParameterInfo(ParameterInfo.IN, 0));
        parameters.add(new ParameterInfo(ParameterInfo.RESULT_SET, 5));
        message.setParameters(parameters);
        PlanNode planDescs = new PlanNode("test");
        planDescs.addProperty("key1", "val1"); //$NON-NLS-1$ //$NON-NLS-2$
        planDescs.addProperty("key2", "val2"); //$NON-NLS-1$ //$NON-NLS-2$
        planDescs.addProperty("key3", "val3"); //$NON-NLS-1$ //$NON-NLS-2$
        planDescs.addProperty("key4", "val4"); //$NON-NLS-1$ //$NON-NLS-2$
        message.setPlanDescription(planDescs);

        List results = new ArrayList();
        results.add(new BigInteger("100")); //$NON-NLS-1$
        results.add(new BigInteger("200")); //$NON-NLS-1$
View Full Code Here

    public String toString() {
        return "NOOP"; //$NON-NLS-1$
    }

    public PlanNode getDescriptionProperties() {
        return new PlanNode("NO OP"); //$NON-NLS-1$           
    }
View Full Code Here

        xmlPlan.xmlSchemas = this.xmlSchemas;
        return xmlPlan;
    }

    public PlanNode getDescriptionProperties() {
      PlanNode node = this.originalProgram.getDescriptionProperties();
      node.addProperty(PROP_OUTPUT_COLS, AnalysisRecord.getOutputColumnProperties(getOutputElements()));
      return node;
    }
View Full Code Here

    return clonedNode;
  }
   
    public PlanNode getDescriptionProperties() {
      PlanNode props = super.getDescriptionProperties();
       
        if(this.mode != Mode.DUP_REMOVE && this.items != null) {
            props.addProperty(PROP_SORT_COLS, this.items.toString());
        }
       
        props.addProperty(PROP_SORT_MODE, this.mode.toString());
       
        return props;
    }
View Full Code Here

        // Return batch
        return batch;
    }

    public PlanNode getDescriptionProperties() {
      PlanNode node = this.originalProgram.getDescriptionProperties();
      node.addProperty(PROP_OUTPUT_COLS, AnalysisRecord.getOutputColumnProperties(getOutputElements()));
      return node;
    }
View Full Code Here

            parentProgram = env.peek();
        }
    }
   
    public PlanNode getDescriptionProperties() {
        return new PlanNode("CONTINUE"); //$NON-NLS-1$
    }
View Full Code Here

    public String toString() {
        return "SQL  " + resultSetName; //$NON-NLS-1$
    }

    public PlanNode getDescriptionProperties() {
      PlanNode props = new PlanNode("EXECUTE SQL"); //$NON-NLS-1$
        props.addProperty(PROP_RESULT_SET, this.resultSetName);
      props.addProperty(PROP_SQL, this.info.getPlan().getDescriptionProperties());
        return props;
    }
View Full Code Here

    public String toString() {
        return "IF INSTRUCTION:"; //$NON-NLS-1$
    }

    public PlanNode getDescriptionProperties() {
      PlanNode props = new PlanNode("IF"); //$NON-NLS-1$
        props.addProperty(PROP_CRITERIA, this.condition.toString());
        props.addProperty(PROP_THEN, this.ifProgram.getDescriptionProperties());
        if(elseProgram != null) {
          props.addProperty(PROP_ELSE, this.elseProgram.getDescriptionProperties());
        }
        return props;
    }
View Full Code Here

    public String toString() {
        return "JOINED " + originalResultSet + " " + super.toString(); //$NON-NLS-1$ //$NON-NLS-2$
    }

    public PlanNode getDescriptionProperties() {
        return new PlanNode("JOINED LOOP"); //$NON-NLS-1$
    }
View Full Code Here

TOP

Related Classes of org.teiid.client.plan.PlanNode

Copyright © 2018 www.massapicom. 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.