Package com.alibaba.wasp.plan

Examples of com.alibaba.wasp.plan.DropIndexPlan


    FTable ftable = metaEventOperation.checkAndGetTable(tableName, true);

    String indexName = parseName(indexNameExpr);
    metaEventOperation.checkIndexExists(ftable, indexName);

    DropIndexPlan dropIndex = new DropIndexPlan(indexName, tableName);
    context.setPlan(dropIndex);
    LOG.debug("DropIndexPlan " + dropIndex.toString());
  }
View Full Code Here


          CreateIndexPlan createIndex = (CreateIndexPlan) plan;
          Index index = createIndex.getIndex();
          TableSchemaCacheReader.getService(conf).addIndex(
              index.getDependentTableName(), index);
        } else if (plan instanceof DropIndexPlan) {
          DropIndexPlan dropIndex = (DropIndexPlan) plan;
          String tableName = dropIndex.getTableName();
          String indexName = dropIndex.getIndexName();
          Index index = TableSchemaCacheReader.getService(conf).getIndex(
              tableName, indexName);
          TableSchemaCacheReader.getService(conf).deleteIndex(
              index.getDependentTableName(), index);
        } else {
View Full Code Here

TOP

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

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.