com.datastax.driver.core.Metadata.triggerOnTableRemoved()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(82)

本文整理了Java中com.datastax.driver.core.Metadata.triggerOnTableRemoved()方法的一些代码示例,展示了Metadata.triggerOnTableRemoved()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Metadata.triggerOnTableRemoved()方法的具体详情如下:
包路径:com.datastax.driver.core.Metadata
类名称:Metadata
方法名:triggerOnTableRemoved

Metadata.triggerOnTableRemoved介绍

暂无

代码示例

代码示例来源:origin: com.datastax.cassandra/cassandra-driver-core

@Override
 public void run() {
  cluster.metadata.triggerOnTableRemoved(removedTable);
 }
});

代码示例来源:origin: com.datastax.cassandra/cassandra-driver-core

@Override
 public void run() {
  manager.metadata.triggerOnTableRemoved(removedTable);
 }
});

代码示例来源:origin: com.datastax.cassandra/cassandra-driver-core

&& !newTables.containsKey(tableName)) {
it.remove();
metadata.triggerOnTableRemoved(oldTable);

代码示例来源:origin: com.yugabyte/cassandra-driver-core

@Override
  public void run() {
    manager.metadata.triggerOnTableRemoved(removedTable);
  }
});

代码示例来源:origin: com.yugabyte/cassandra-driver-core

@Override
  public void run() {
    cluster.metadata.triggerOnTableRemoved(removedTable);
  }
});

代码示例来源:origin: io.prestosql.cassandra/cassandra-driver

@Override
  public void run() {
    manager.metadata.triggerOnTableRemoved(removedTable);
  }
});

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver

@Override
  public void run() {
    manager.metadata.triggerOnTableRemoved(removedTable);
  }
});

代码示例来源:origin: io.prestosql.cassandra/cassandra-driver

@Override
  public void run() {
    cluster.metadata.triggerOnTableRemoved(removedTable);
  }
});

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver

@Override
  public void run() {
    cluster.metadata.triggerOnTableRemoved(removedTable);
  }
});

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver

private void updateTables(Metadata metadata, Map<String, TableMetadata> oldTables, Map<String, TableMetadata> newTables, String tableToRebuild) {
  Iterator<TableMetadata> it = oldTables.values().iterator();
  while (it.hasNext()) {
    TableMetadata oldTable = it.next();
    String tableName = oldTable.getName();
    // If we're rebuilding only a single table, we should only consider that one
    // because newTables will only contain that table.
    if ((tableToRebuild == null || tableToRebuild.equals(tableName)) && !newTables.containsKey(tableName)) {
      it.remove();
      metadata.triggerOnTableRemoved(oldTable);
    }
  }
  for (TableMetadata newTable : newTables.values()) {
    TableMetadata oldTable = oldTables.put(newTable.getName(), newTable);
    if (oldTable == null) {
      metadata.triggerOnTableAdded(newTable);
    } else if (!oldTable.equals(newTable)) {
      metadata.triggerOnTableChanged(newTable, oldTable);
    }
  }
}

代码示例来源:origin: com.yugabyte/cassandra-driver-core

private void updateTables(Metadata metadata, Map<String, TableMetadata> oldTables, Map<String, TableMetadata> newTables, String tableToRebuild) {
  Iterator<TableMetadata> it = oldTables.values().iterator();
  while (it.hasNext()) {
    TableMetadata oldTable = it.next();
    String tableName = oldTable.getName();
    // If we're rebuilding only a single table, we should only consider that one
    // because newTables will only contain that table.
    if ((tableToRebuild == null || tableToRebuild.equals(tableName)) && !newTables.containsKey(tableName)) {
      it.remove();
      metadata.triggerOnTableRemoved(oldTable);
    }
  }
  for (TableMetadata newTable : newTables.values()) {
    TableMetadata oldTable = oldTables.put(newTable.getName(), newTable);
    if (oldTable == null) {
      metadata.triggerOnTableAdded(newTable);
    } else if (!oldTable.equals(newTable)) {
      metadata.triggerOnTableChanged(newTable, oldTable);
    }
  }
}

代码示例来源:origin: io.prestosql.cassandra/cassandra-driver

private void updateTables(Metadata metadata, Map<String, TableMetadata> oldTables, Map<String, TableMetadata> newTables, String tableToRebuild) {
  Iterator<TableMetadata> it = oldTables.values().iterator();
  while (it.hasNext()) {
    TableMetadata oldTable = it.next();
    String tableName = oldTable.getName();
    // If we're rebuilding only a single table, we should only consider that one
    // because newTables will only contain that table.
    if ((tableToRebuild == null || tableToRebuild.equals(tableName)) && !newTables.containsKey(tableName)) {
      it.remove();
      metadata.triggerOnTableRemoved(oldTable);
    }
  }
  for (TableMetadata newTable : newTables.values()) {
    TableMetadata oldTable = oldTables.put(newTable.getName(), newTable);
    if (oldTable == null) {
      metadata.triggerOnTableAdded(newTable);
    } else if (!oldTable.equals(newTable)) {
      metadata.triggerOnTableChanged(newTable, oldTable);
    }
  }
}

相关文章