/** * Add an annotation. This can only be used if {@link #recordAnnotations} * returns true. * @param annotation Annotation to add */ public void addAnnotation(Annotation annotation) { this.annotations.add(annotation); if (this.recordDebug()) { this.println(annotation.toString()); } }
/** * Add an annotation. This can only be used if {@link #recordAnnotations} * returns true. * @param annotation Annotation to add */ public void addAnnotation(Annotation annotation) { this.annotations.add(annotation); if (this.recordDebug()) { this.println(annotation.toString()); } }
/** * Add an annotation. This can only be used if {@link #recordAnnotations} * returns true. * @param annotation Annotation to add */ public void addAnnotation(Annotation annotation) { this.annotations.add(annotation); if (this.recordDebug()) { this.println(annotation.toString()); } }
public RelationalPlan convert(PlanNode planNode) throws QueryPlannerException, TeiidComponentException { try { boolean debug = analysisRecord.recordDebug(); if(debug) { analysisRecord.println("\n============================================================================"); //$NON-NLS-1$ analysisRecord.println("CONVERTING PLAN TREE TO PROCESS TREE"); //$NON-NLS-1$ } // Convert plan tree nodes into process tree nodes RelationalNode processNode; try { processNode = convertPlan(planNode); } catch (TeiidProcessingException e) { if (e instanceof QueryPlannerException) { throw (QueryPlannerException)e; } throw new QueryPlannerException(e); } if(debug) { analysisRecord.println("\nPROCESS PLAN = \n" + processNode); //$NON-NLS-1$ analysisRecord.println("============================================================================"); //$NON-NLS-1$ } RelationalPlan processPlan = new RelationalPlan(processNode); return processPlan; } finally { sharedCommands.clear(); } }
public RelationalPlan convert(PlanNode planNode) throws QueryPlannerException, TeiidComponentException { try { boolean debug = analysisRecord.recordDebug(); if(debug) { analysisRecord.println("\n============================================================================"); //$NON-NLS-1$ analysisRecord.println("CONVERTING PLAN TREE TO PROCESS TREE"); //$NON-NLS-1$ } // Convert plan tree nodes into process tree nodes RelationalNode processNode; try { processNode = convertPlan(planNode); } catch (TeiidProcessingException e) { if (e instanceof QueryPlannerException) { throw (QueryPlannerException)e; } throw new QueryPlannerException(e); } if(debug) { analysisRecord.println("\nPROCESS PLAN = \n" + processNode); //$NON-NLS-1$ analysisRecord.println("============================================================================"); //$NON-NLS-1$ } RelationalPlan processPlan = new RelationalPlan(processNode); return processPlan; } finally { sharedCommands.clear(); } }
if (record.recordDebug()) { sb = new StringBuilder(); showArcs(sb, parentRoot, 0);
public RelationalPlan convert(PlanNode planNode) throws QueryPlannerException, TeiidComponentException { try { boolean debug = analysisRecord.recordDebug(); if(debug) { analysisRecord.println("\n============================================================================"); //$NON-NLS-1$ analysisRecord.println("CONVERTING PLAN TREE TO PROCESS TREE"); //$NON-NLS-1$ } // Convert plan tree nodes into process tree nodes RelationalNode processNode; try { processNode = convertPlan(planNode); } catch (TeiidProcessingException e) { if (e instanceof QueryPlannerException) { throw (QueryPlannerException)e; } throw new QueryPlannerException(e); } if(debug) { analysisRecord.println("\nPROCESS PLAN = \n" + processNode); //$NON-NLS-1$ analysisRecord.println("============================================================================"); //$NON-NLS-1$ } RelationalPlan processPlan = new RelationalPlan(processNode); return processPlan; } finally { sharedCommands.clear(); } }
if (record.recordDebug()) { sb = new StringBuilder(); showArcs(sb, parentRoot, 0);
public PlanNode executeRules(RuleStack rules, PlanNode plan) throws QueryPlannerException, QueryMetadataException, TeiidComponentException { boolean debug = analysisRecord.recordDebug(); while(! rules.isEmpty()) { if(debug) { analysisRecord.println("\n============================================================================"); //$NON-NLS-1$ } OptimizerRule rule = rules.pop(); if(debug) { analysisRecord.println("EXECUTING " + rule); //$NON-NLS-1$ } plan = rule.execute(plan, metadata, capFinder, rules, analysisRecord, context); if(debug) { analysisRecord.println("\nAFTER: \n" + plan.nodeToString(true)); //$NON-NLS-1$ } } return plan; }
if (record.recordDebug()) { sb = new StringBuilder(); showArcs(sb, parentRoot, 0);
public PlanNode executeRules(RuleStack rules, PlanNode plan) throws QueryPlannerException, QueryMetadataException, TeiidComponentException { boolean debug = analysisRecord.recordDebug(); while(! rules.isEmpty()) { if(debug) { analysisRecord.println("\n============================================================================"); //$NON-NLS-1$ } OptimizerRule rule = rules.pop(); if(debug) { analysisRecord.println("EXECUTING " + rule); //$NON-NLS-1$ } plan = rule.execute(plan, metadata, capFinder, rules, analysisRecord, context); if(debug) { analysisRecord.println("\nAFTER: \n" + plan.nodeToString(true)); //$NON-NLS-1$ } } return plan; }
public PlanNode executeRules(RuleStack rules, PlanNode plan) throws QueryPlannerException, QueryMetadataException, TeiidComponentException { boolean debug = analysisRecord.recordDebug(); while(! rules.isEmpty()) { if(debug) { analysisRecord.println("\n============================================================================"); //$NON-NLS-1$ } OptimizerRule rule = rules.pop(); if(debug) { analysisRecord.println("EXECUTING " + rule); //$NON-NLS-1$ } plan = rule.execute(plan, metadata, capFinder, rules, analysisRecord, context); if(debug) { analysisRecord.println("\nAFTER: \n" + plan.nodeToString(true)); //$NON-NLS-1$ } } return plan; }
public void testDebugLog() { AnalysisRecord rec = new AnalysisRecord(false, true); assertTrue(rec.recordDebug()); rec.println("a"); //$NON-NLS-1$ rec.println("b"); //$NON-NLS-1$ String log = rec.getDebugLog(); assertEquals("a\nb\n", log); //$NON-NLS-1$ }
boolean debug = analysisRecord.recordDebug(); if(debug) { analysisRecord.println("============================================================================"); //$NON-NLS-1$
boolean debug = analysisRecord.recordDebug(); if(debug) { analysisRecord.println("\n============================================================================"); //$NON-NLS-1$
boolean debug = analysisRecord.recordDebug(); if(debug) { analysisRecord.println("\n============================================================================"); //$NON-NLS-1$
boolean debug = analysisRecord.recordDebug(); if(debug) { analysisRecord.println("\n============================================================================"); //$NON-NLS-1$
throws QueryPlannerException, QueryMetadataException, TeiidComponentException { boolean debug = analysisRecord.recordDebug(); if(debug) { analysisRecord.println("\n####################################################"); //$NON-NLS-1$
throws QueryPlannerException, QueryMetadataException, TeiidComponentException { boolean debug = analysisRecord.recordDebug(); if(debug) { analysisRecord.println("\n####################################################"); //$NON-NLS-1$
throws QueryPlannerException, QueryMetadataException, TeiidComponentException { boolean debug = analysisRecord.recordDebug(); if(debug) { analysisRecord.println("\n####################################################"); //$NON-NLS-1$