本文整理了Java中com.datastax.driver.core.Cluster.buildFrom()
方法的一些代码示例,展示了Cluster.buildFrom()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Cluster.buildFrom()
方法的具体详情如下:
包路径:com.datastax.driver.core.Cluster
类名称: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);
}
}
内容来源于网络,如有侵权,请联系作者删除!