gpt4 book ai didi

com.moz.fiji.schema.zookeeper.ZooKeeperUtils.setTableLayout()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 22:57:31 24 4
gpt4 key购买 nike

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

ZooKeeperUtils.setTableLayout介绍

[英]Updates the table layout ID in ZooKeeper. This will notify all watchers of the table layout.

The caller must ensure proper locking of table layout update operations.
[中]更新ZooKeeper中的表格布局ID。这将通知所有观察者表格布局。
调用者必须确保正确锁定表布局更新操作。

代码示例

代码示例来源:origin: com.moz.fiji.schema/fiji-schema

/**
 * Writes the new layout to ZooKeeper.
 *
 * <p> This pushes a layout update to all table users. </p>
 *
 * @param update Layout update to push to ZooKeeper.
 *
 * @throws IOException on I/O error.
 * @throws KeeperException on ZooKeeper error.
 */
private void writeZooKeeper(TableLayoutDesc update) throws IOException, KeeperException {
 LOG.info("Updating layout for table {} from layout ID {} to layout ID {} in ZooKeeper.",
   mTableURI, update.getReferenceLayout(), update.getLayoutId());
 ZooKeeperUtils.setTableLayout(mZKClient, mTableURI, update.getLayoutId());
}

代码示例来源:origin: com.moz.fiji.schema/fiji-schema-cassandra

/**
 * Writes the new layout to ZooKeeper.
 *
 * <p> This pushes a layout update to all table users. </p>
 *
 * @param update Layout update to push to ZooKeeper.
 *
 * @throws java.io.IOException on I/O error.
 * @throws org.apache.zookeeper.KeeperException on ZooKeeper error.
 */
private void writeZooKeeper(TableLayoutDesc update) throws IOException, KeeperException {
 LOG.info("Updating layout for table {} from layout ID {} to layout ID {} in ZooKeeper.",
   mTableURI, update.getReferenceLayout(), update.getLayoutId());
 ZooKeeperUtils.setTableLayout(mZKClient, mTableURI, update.getLayoutId());
}

代码示例来源:origin: com.moz.fiji.schema/fiji-schema-cassandra

ZooKeeperUtils.setTableLayout(mZKClient, tableURI, layout.getDesc().getLayoutId());

代码示例来源:origin: com.moz.fiji.schema/fiji-schema

ZooKeeperUtils.setTableLayout(
  mZKClient,
  tableURI,

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com