Examples of tableList()


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

  public static void main(String[] args) throws BlurException, TException, IOException {
    String connectionStr = args[0];

    Iface client = BlurClient.getClient(connectionStr);
    System.out.println(client.tableList());
  }
}
View Full Code Here

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

  public static void main(String[] args) throws BlurException, TException, IOException, InterruptedException {
    String connectionStr = args[0];

    Iface client = BlurClient.getClient(connectionStr);
    System.out.println(client.tableList());

    while (true) {
      System.out.println("===============");
      for (String table : client.tableList()) {
        Map<String, Map<String, ShardState>> state = client.shardServerLayoutState(table);
View Full Code Here

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

    Iface client = BlurClient.getClient(connectionStr);
    System.out.println(client.tableList());

    while (true) {
      System.out.println("===============");
      for (String table : client.tableList()) {
        Map<String, Map<String, ShardState>> state = client.shardServerLayoutState(table);
        for (String shard : state.keySet()) {
          Map<String, ShardState> shardMap = state.get(shard);
          for (Entry<String, ShardState> entry : shardMap.entrySet()) {
            System.out.println(shard + " " + entry.getKey() + " " + entry.getValue());
View Full Code Here

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

      client.createTable(tableDescriptor);
      client.disableTable(tableName);
      client.removeTable(tableName, true);
    }

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

  }
}
View Full Code Here

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

  @Override
  public void clearStorage() throws StorageException {
    LOG.info("Clearing storage");
    Iface client = getClient();
    try {
      List<String> tableList = client.tableList();
      for (String table : tableList) {
        if (table.startsWith(_tableNamePrefix)) {
          LOG.info("Clearing store table [" + table + "]");
          TableDescriptor describe = client.describe(table);
          LOG.info("Disabling table [" + table + "]");
View Full Code Here

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

  @Before
  public void ensureCleanTables() throws Exception {
    setupConfigIfNeeded();

    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);
      }
View Full Code Here

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

  public void setup() throws Exception {
    setupConfigIfNeeded();

    Iface client = BlurClient.getClient(Config.getConnectionString());

    if (!client.tableList().contains("queryUnitTable")) {
      TableDescriptor td = new TableDescriptor();
      td.setShardCount(11);
      td.setTableUri("file://" + TABLE_PATH + "/queryUnitTable");
      td.setCluster("default");
      td.setName("queryUnitTable");
View Full Code Here

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

  public static int getCurrentQueryCount() throws IOException, TException {
    Iface client = BlurClient.getClient(Config.getConnectionString());

    int count = 0;
    List<String> tableList = client.tableList();
    for (String table : tableList) {
      List<String> queries = client.queryStatusIdList(table);
      count += queries.size();
    }
View Full Code Here

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

    int slow = 0;

    List<Map<String, Object>> queries = new ArrayList<Map<String, Object>>();

    Iface client = BlurClient.getClient(Config.getConnectionString());
    List<String> tableList = client.tableList();

    for (String table : tableList) {
      List<String> queriesForTable = client.queryStatusIdList(table);
      for (String id : queriesForTable) {
        BlurQueryStatus status = client.queryStatusById(table, id);
View Full Code Here

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

  }

  @After
  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);
    }
  }
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.