Examples of removeTable()


Examples of org.apache.blur.thrift.generated.Blur.Iface.removeTable()

          LOG.info("Clearing store table [" + table + "]");
          TableDescriptor describe = client.describe(table);
          LOG.info("Disabling table [" + table + "]");
          client.disableTable(table);
          LOG.info("Removing table [" + table + "]");
          client.removeTable(table, true);
          LOG.info("Creating table [" + table + "]");
          client.createTable(describe);
        }
      }
    } catch (BlurException e) {
View Full Code Here

Examples of org.apache.blur.thrift.generated.Blur.Iface.removeTable()

    Iface client = BlurClient.getClient(Config.getConnectionString());
    List<String> tableList = client.tableList();
    if (!tableList.isEmpty()) {
      for (String table : tableList) {
        client.disableTable(table);
        client.removeTable(table, true);
      }
    }
  }

  @SuppressWarnings("rawtypes")
View Full Code Here

Examples of org.apache.blur.thrift.generated.Blur.Iface.removeTable()

  public void tearDown() throws BlurException, TException {
    Iface client = getClient();
    List<String> tableList = client.tableList();
    for (String table : tableList) {
      client.disableTable(table);
      client.removeTable(table, true);
    }
  }

  private Iface getClient() {
    return BlurClient.getClient(miniCluster.getControllerConnectionStr());
View Full Code Here

Examples of org.apache.blur.thrift.generated.Blur.Iface.removeTable()

    tableDescriptor.setTableUri(miniCluster.getFileSystemUri().toString() + "/blur/" + tableName);

    for (int i = 0; i < 3; i++) {
      client.createTable(tableDescriptor);
      client.disableTable(tableName);
      client.removeTable(tableName, true);
    }

    assertFalse(client.tableList().contains(tableName));

  }
View Full Code Here

Examples of org.apache.ddlutils.model.Database.removeTable()

            // Iterate in reverse order since removeTable() changes the list size.
            for (int i = currentDatabase.getTableCount() - 1; i >= 0; i--) {
                Table table = currentDatabase.getTable(i);
                if(database.findTable(table.getName(), false) == null){
                    Logger.debug("Keeping existing table %s", table.getName());
                    currentDatabase.removeTable(i);
                }
            }
        }
       
        if(Logger.isDebugEnabled()){
View Full Code Here

Examples of org.apache.metamodel.schema.MutableSchema.removeTable()

        return new AbstractTableDropBuilder(table) {
            @Override
            public void execute() throws MetaModelException {
                MutableTable mutableTable = (MutableTable) getTable();
                MutableSchema schema = (MutableSchema) mutableTable.getSchema();
                schema.removeTable(mutableTable);
                mutableTable.setSchema(null);
            }
        };
    }
View Full Code Here

Examples of org.apache.metamodel.schema.MutableSchema.removeTable()

    @Override
    public void execute() throws MetaModelException {
        Table table = getTable();
        _updateCallback.removeCollection(table.getName());
        MutableSchema schema = (MutableSchema) table.getSchema();
        schema.removeTable(table);
    }

}
View Full Code Here

Examples of org.apache.metamodel.schema.MutableSchema.removeTable()

    @Override
    public void execute() throws MetaModelException {
        final Table table = getTable();
        _updateCallback.removeSheet(table.getName());
        final MutableSchema schema = (MutableSchema) table.getSchema();
        schema.removeTable(table);
    }

}
View Full Code Here

Examples of org.apache.metamodel.schema.MutableSchema.removeTable()

  @Override
  public void execute() throws MetaModelException {
    CouchDbInstance instance = _updateCallback.getDataContext().getCouchDbInstance();
    Table table = getTable();
    MutableSchema schema = (MutableSchema) table.getSchema();
    schema.removeTable(table);
   
    instance.deleteDatabase(table.getName());
  }

}
View Full Code Here

Examples of org.apache.metamodel.schema.MutableSchema.removeTable()

            primaryTable.addColumn(newPrimaryColumn);
        }
        _tableData.put(primaryTableName, tableRows);

        MutableSchema mutableSchema = (MutableSchema) foreignTable.getSchema();
        mutableSchema.removeTable(foreignTable);

        _tableData.remove(foreignTableName);
        ((MutableRelationship) relationship).remove();

        if (logger.isInfoEnabled()) {
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.