Package org.teiid.client.plan

Examples of org.teiid.client.plan.Annotation


       
        Collection<GroupSymbol> leftGroups = FrameUtil.findJoinSourceNode(current).getGroups();

    if (!planQuery(leftGroups, false, plannedResult)) {
      if (plannedResult.mergeJoin && analysisRecord != null && analysisRecord.recordAnnotations()) {
        this.analysisRecord.addAnnotation(new Annotation(Annotation.HINTS, "could not plan as a merge join: " + crit, "ignoring hint", Priority.MEDIUM)); //$NON-NLS-1$ //$NON-NLS-2$
      }
      return current;
    }
   
    //add an order by, which hopefully will get pushed down
View Full Code Here


                }
               
                if(! appliedHint) {
                  String msg = QueryPlugin.Util.getString("ERR.015.004.0010", groupName); //$NON-NLS-1$
                  if (this.analysisRecord.recordAnnotations()) {
                    this.analysisRecord.addAnnotation(new Annotation(Annotation.HINTS, msg, "ignoring hint", Priority.MEDIUM)); //$NON-NLS-1$
                  }
                }
            }
        }
    }
View Full Code Here

        return false;
    }
   
    private static void recordAnnotation(AnalysisRecord analysis, String type, Priority priority, String msgKey, Object... parts) {
      if (analysis.recordAnnotations()) {
        Annotation annotation = new Annotation(type,
                    QueryPlugin.Util.getString(msgKey, parts),
                    null,
                    priority);
        analysis.addAnnotation(annotation);
      }
View Full Code Here

    public void testAnnotations() {
        AnalysisRecord rec = new AnalysisRecord(true, false);
        assertTrue(rec.recordAnnotations());
       
        Annotation ann1 = new Annotation("cat", "ann", "res", Priority.MEDIUM); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
        Annotation ann2 = new Annotation("cat2", "ann2", "res2", Priority.HIGH); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
     
        rec.addAnnotation(ann1);
        rec.addAnnotation(ann2);
       
        Collection<Annotation> annotations = rec.getAnnotations();
View Full Code Here

TOP

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

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.