Examples of DropIndexPlan


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

Examples of com.alibaba.wasp.plan.DropIndexPlan

          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
Copyright © 2018 www.massapi.com. 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.