Package com.alibaba.wasp.plan.parser.druid

Examples of com.alibaba.wasp.plan.parser.druid.DruidDDLParser


  public void setConf(Configuration configuration) {
    super.setConf(configuration);
    try {
      connection = FConnectionManager.getConnection(this.getConf());
      if (ddlParser == null) {
        ddlParser = new DruidDDLParser(this.configuration);
      }
      if (dqlParser == null) {
        dqlParser = new DruidDQLParser(this.configuration);
      }
      if (dmlParser == null) {
View Full Code Here


  @BeforeClass
  public static void setUpBeforeClass() throws Exception {
    context.setGenWholePlan(false);
    conf.setClass(FConstants.REDO_IMPL, MemRedoLog.class, Redo.class);
    DruidDQLParser dqlParser = new DruidDQLParser(conf, null);
    DruidDDLParser ddlParser = new DruidDDLParser(conf);
    DruidDMLParser dmlParser = new DruidDMLParser(conf, null);
    druidParser = new WaspParser(ddlParser, dqlParser, dmlParser);
    MemFMetaStore fmetaServices = new MemFMetaStore();
    TableSchemaCacheReader reader = TableSchemaCacheReader.getInstance(conf,
        fmetaServices);
View Full Code Here

    WaspTestingUtility.adjustLogLevel();
    TEST_UTIL.startMiniCluster(3);
    conf = TEST_UTIL.getConfiguration();
    context.setGenWholePlan(false);
    DruidDQLParser dqlParser = new DruidDQLParser(conf);
    DruidDDLParser ddlParser = new DruidDDLParser(conf);
    DruidDMLParser dmlParser = new DruidDMLParser(conf);
    druidParser = new WaspParser(ddlParser, dqlParser, dmlParser);
    TableSchemaCacheReader reader = TableSchemaCacheReader.getInstance(conf);
    reader.clearCache();
    context.setTsr(reader);
View Full Code Here

    WaspTestingUtility.adjustLogLevel();
    TEST_UTIL.startMiniCluster(3);
    conf = TEST_UTIL.getConfiguration();
    context.setGenWholePlan(false);
    DruidDQLParser dqlParser = new DruidDQLParser(conf, null);
    DruidDDLParser ddlParser = new DruidDDLParser(conf);
    DruidDMLParser dmlParser = new DruidDMLParser(conf, null);
    druidParser = new WaspParser(ddlParser, dqlParser, dmlParser);
    TableSchemaCacheReader reader = TableSchemaCacheReader.getInstance(conf);
    reader.clearCache();
    context.setTsr(reader);
View Full Code Here

    try {
      TableSchemaCacheReader reader = TableSchemaCacheReader.getInstance(conf);
      context.setTsr(reader);

      DruidDQLParser dqlParser = new DruidDQLParser(conf, null);
      DruidDDLParser ddlParser = new DruidDDLParser(conf);
      DruidDMLParser dmlParser = new DruidDMLParser(conf, null);
      WaspParser druidParser = new WaspParser(ddlParser, dqlParser, dmlParser);

      // create table
      context.setSql(createTable);
View Full Code Here

    try {
      TableSchemaCacheReader reader = TableSchemaCacheReader.getInstance(conf);
      context.setTsr(reader);

      DruidDQLParser dqlParser = new DruidDQLParser(conf, null);
      DruidDDLParser ddlParser = new DruidDDLParser(conf);
      DruidDMLParser dmlParser = new DruidDMLParser(conf, null);
      WaspParser druidParser = new WaspParser(ddlParser, dqlParser, dmlParser);

      DruidParserTestUtil.loadTable(context, druidParser.getDruidDDLParser(),
          fmetaServices);
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.plan.parser.druid.DruidDDLParser

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.