Package org.teiid.client.plan

Examples of org.teiid.client.plan.PlanNode


       
        return program;
    }

    public PlanNode getDescriptionProperties() {
      PlanNode props = new PlanNode("Program"); //$NON-NLS-1$
       
        if(this.programInstructions != null) {
          for (int i = 0; i < programInstructions.size(); i++) {
                ProgramInstruction inst = programInstructions.get(i);
                PlanNode childProps = inst.getDescriptionProperties();
                props.addProperty("Instruction " + i, childProps); //$NON-NLS-1$
            }
        }
        return props;
    }
View Full Code Here


    public String toString() {
        return "RAISE ERROR INSTRUCTION: " + expression; //$NON-NLS-1$
   
   
    public PlanNode getDescriptionProperties() {
      PlanNode node = new PlanNode("RAISE ERROR"); //$NON-NLS-1$
      node.addProperty(PROP_EXPRESSION, this.expression.toString());
      return node;
    }
View Full Code Here

        return "LAST"; //$NON-NLS-1$
    }

    public PlanNode getDescriptionProperties() {
        if(direction == UP) {
            return new PlanNode("UP IN DOCUMENT"); //$NON-NLS-1$           
        }
        return new PlanNode("NEXT IN DOCUMENT"); //$NON-NLS-1$
    }
View Full Code Here

        planIndex = 0;
        commandIndex = 0;
    }

    public PlanNode getDescriptionProperties() {
      PlanNode props = super.getDescriptionProperties();
        for (int i = 0; i < getPlanCount(); i++) {
            props.addProperty("Batch Plan " + i, updatePlans[i].getDescriptionProperties()); //$NON-NLS-1$
        }
        return props;
    }
View Full Code Here

    }
  }
 
  @Override
  public PlanNode getDescriptionProperties() {
    PlanNode props = super.getDescriptionProperties();
        props.addProperty(PROP_SQL, this.command.toString());
        return props;
  }
View Full Code Here

  public boolean requiresTransaction(boolean transactionalReads) {
    return transactionalReads;
  }
 
    public PlanNode getDescriptionProperties() {
        PlanNode props = new PlanNode(this.getClass().getSimpleName());
        props.addProperty(PROP_OUTPUT_COLS, AnalysisRecord.getOutputColumnProperties(getOutputElements()));
        return props;
    }
View Full Code Here

    }
    return plan;
  }
 
    public PlanNode getDescriptionProperties() {
      PlanNode node = this.root.getDescriptionProperties();
      if (this.with != null) {
        AnalysisRecord.addLanaguageObjects(node, AnalysisRecord.PROP_WITH, this.with);
        }
      return node;
    }
View Full Code Here

       
        return clonedNode;
    }

    public PlanNode getDescriptionProperties() {
      PlanNode props = super.getDescriptionProperties();
        props.addProperty(PROP_INTO_GROUP, intoGroup.toString());
        List<String> selectCols = new ArrayList<String>(intoElements.size());
        for(int i=0; i<this.intoElements.size(); i++) {
            selectCols.add(this.intoElements.get(i).toString());
        }
        props.addProperty(PROP_SELECT_COLS, selectCols);

        return props;
    }
View Full Code Here

        super.copy(source, target);
        target.selectSymbols = this.selectSymbols;
    }

    public PlanNode getDescriptionProperties() {
      PlanNode props = super.getDescriptionProperties();
      AnalysisRecord.addLanaguageObjects(props, PROP_SELECT_COLS, this.selectSymbols);
        return props;
    }
View Full Code Here

    target.shouldEvaluate = source.shouldEvaluate;
    target.command = source.command;
  }

    public PlanNode getDescriptionProperties() {
      PlanNode props = super.getDescriptionProperties();
        props.addProperty(PROP_SQL, this.command.toString());
        props.addProperty(PROP_MODEL_NAME, this.modelName);
        return props;
    }
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.