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

x33g5p2x  于2022-01-18 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(141)

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

Cluster.buildFrom介绍

[英]Build a new cluster based on the provided initializer.

Note that for building a cluster pragmatically, Cluster.Builder provides a slightly less verbose shortcut with Builder#build.

Also note that that all the contact points provided by initializer must share the same port.
[中]基于提供的初始值设定项构建新集群。
请注意,为了实用地构建集群,请使用cluster。Builder为Builder#build提供了一个稍微不太详细的快捷方式。
还要注意,初始化器提供的所有触点必须共享同一端口。

代码示例

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

/**
  * Builds the cluster with the configured set of initial contact points and policies.
  *
  * <p>This is a convenience method for {@code Cluster.buildFrom(this)}.
  *
  * @return the newly built Cluster instance.
  */
 public Cluster build() {
  return Cluster.buildFrom(this);
 }
}

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

/**
   * Builds the cluster with the configured set of initial contact points
   * and policies.
   * <p/>
   * This is a convenience method for {@code Cluster.buildFrom(this)}.
   *
   * @return the newly built Cluster instance.
   */
  public Cluster build() {
    return Cluster.buildFrom(this);
  }
}

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

/**
   * Builds the cluster with the configured set of initial contact points
   * and policies.
   * <p/>
   * This is a convenience method for {@code Cluster.buildFrom(this)}.
   *
   * @return the newly built Cluster instance.
   */
  public Cluster build() {
    return Cluster.buildFrom(this);
  }
}

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

/**
   * Builds the cluster with the configured set of initial contact points
   * and policies.
   * <p>
   * This is a convenience method for {@code Cluster.buildFrom(this)}.
   *
   * @return the newly built Cluster instance.
   */
  public Cluster build() {
    return Cluster.buildFrom(this);
  }
}

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

/**
   * Builds the cluster with the configured set of initial contact points
   * and policies.
   * <p/>
   * This is a convenience method for {@code Cluster.buildFrom(this)}.
   *
   * @return the newly built Cluster instance.
   */
  public Cluster build() {
    return Cluster.buildFrom(this);
  }
}

相关文章