Search in sources :

Example 6 with PlanParser

use of com.cubrid.common.core.queryplan.PlanParser in project cubrid-manager by CUBRID.

the class PlanParserTest method testExam03.

/**
	 * Partitioned table
	 * 
	 * @throws Exception
	 */
public void testExam03() throws Exception {
    String planString = loadPlanExmaple("plan03.txt");
    PlanParser parser = new PlanParser();
    boolean bool = parser.doParse(planString);
    assertTrue(bool);
    int subPlanCount = parser.countPlanTree();
    assertEquals(1, subPlanCount);
    for (int i = 0; i < subPlanCount; i++) {
        PlanResult planRoot = parser.getPlanTree(i);
        assertNotNull(planRoot);
    }
}
Also used : PlanResult(com.cubrid.common.core.queryplan.model.PlanResult) PlanParser(com.cubrid.common.core.queryplan.PlanParser)

Example 7 with PlanParser

use of com.cubrid.common.core.queryplan.PlanParser in project cubrid-manager by CUBRID.

the class PlanParserTest method testExam05.

/**
	 * Partitioned table
	 * 
	 * @throws Exception
	 */
public void testExam05() throws Exception {
    String planString = loadPlanExmaple("plan05.txt");
    PlanParser parser = new PlanParser();
    boolean bool = parser.doParse(planString);
    assertFalse(bool);
}
Also used : PlanParser(com.cubrid.common.core.queryplan.PlanParser)

Aggregations

PlanParser (com.cubrid.common.core.queryplan.PlanParser)7 PlanResult (com.cubrid.common.core.queryplan.model.PlanResult)3 PlanCost (com.cubrid.common.core.queryplan.model.PlanCost)1 PlanNode (com.cubrid.common.core.queryplan.model.PlanNode)1 PlanTerm (com.cubrid.common.core.queryplan.model.PlanTerm)1