Package com.alibaba.wasp.plan

Examples of com.alibaba.wasp.plan.ShowIndexesPlan


    SQLName object = sqlShowIndexesStatement.getTable();
    String tablename = parseName(object);
    // check if table exists and get Table info
    metaEventOperation.checkAndGetTable(tablename, true);

    ShowIndexesPlan showIndexesTable = new ShowIndexesPlan(tablename);
    context.setPlan(showIndexesTable);
    LOG.debug("ShowIndexesPlan " + showIndexesTable.toString());
  }
View Full Code Here


      context.setSql(sql);
      boolean result = DruidParserTestUtil.execute(context, druidParser);
      Assert.assertTrue(result);
      Plan plan = context.getPlan();
      if (plan instanceof ShowIndexesPlan) {
        ShowIndexesPlan showIndex = (ShowIndexesPlan) plan;
        String tableName = showIndex.getTableName();
        Assert.assertEquals("Photo", tableName);
      } else {
        Assert.assertTrue(false);
      }
    }
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.plan.ShowIndexesPlan

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.