Package org.teiid.client.plan

Examples of org.teiid.client.plan.PlanNode


    public String toString() {
        return "DOC  encoding: " + encoding + ", is formatted: " + isFormatted; //$NON-NLS-1$ //$NON-NLS-2$
    }

    public PlanNode getDescriptionProperties() {
        PlanNode props = new PlanNode("START DOCUMENT"); //$NON-NLS-1$

        props.addProperty(PROP_ENCODING, this.encoding);
        props.addProperty(PROP_FORMATTED, String.valueOf(this.isFormatted));
               
        return props;
    }
View Full Code Here


        }
  }
   
    public PlanNode getDescriptionProperties() {
        // Default implementation - should be overridden
        PlanNode result = new PlanNode(getClassName());
        result.addProperty(PROP_OUTPUT_COLS, AnalysisRecord.getOutputColumnProperties(this.data.elements));
        if(this.getProcessingState().context != null && this.getProcessingState().context.getCollectNodeStatistics()) {
            result.addProperty(PROP_NODE_STATS_LIST, this.getProcessingState().nodeStatistics.getStatisticsList());
        }
        List<String> costEstimates = this.getCostEstimates();
        if(costEstimates != null) {
          result.addProperty(PROP_NODE_COST_ESTIMATES, costEstimates);
        }
        for(int i=0; i<children.length; i++) {
            if(children[i] != null) {
                result.addProperty("Child " + i, this.children[i].getDescriptionProperties()); //$NON-NLS-1$
            }
        }
        return result;
    }
View Full Code Here

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

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

            buf.append(offsetExpr);
        }
    }

    public PlanNode getDescriptionProperties() {
      PlanNode props = super.getDescriptionProperties();
        props.addProperty(PROP_ROW_OFFSET, String.valueOf(offsetExpr));
        props.addProperty(PROP_ROW_LIMIT, String.valueOf(limitExpr));
        return props;
    }
View Full Code Here

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

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

        target.setProcessorPlan(source.plan.clone());
        super.copy(source, target);
    }

    public PlanNode getDescriptionProperties() {  
      PlanNode props = super.getDescriptionProperties();
        props.addProperty(PROP_EXECUTION_PLAN, this.plan.getDescriptionProperties());               
        return props;
    }
View Full Code Here

    return clonedNode;
  }

    public PlanNode getDescriptionProperties() {
        // Default implementation - should be overridden
      PlanNode props = super.getDescriptionProperties();

        if(sortElements != null) {
            int elements = sortElements.size();
            List<String> groupCols = new ArrayList<String>(elements);
            for(int i=0; i<elements; i++) {
                groupCols.add(this.sortElements.get(i).toString());
            }
            props.addProperty(PROP_GROUP_COLS, groupCols);
        }
       
        props.addProperty(PROP_SORT_MODE, String.valueOf(this.removeDuplicates));

        return props;
    }
View Full Code Here

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

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

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

  public PlanNode getDescriptionProperties() {
    PlanNode props = new PlanNode("ExecDynamicSqlInstruction"); //$NON-NLS-1$
    props.addProperty(PROP_SQL, dynamicCommand.toString());
    return props;
  }
View Full Code Here

        str.append("COMMENT"); //$NON-NLS-1$
        return str.toString();
    }
   
    public PlanNode getDescriptionProperties() {
      PlanNode props = new PlanNode("COMMENT"); //$NON-NLS-1$       
        props.addProperty(PROP_MESSAGE, this.commentText);
        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.