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

x33g5p2x  于2022-01-29 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(110)

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

RegularStatement.getNamedValues介绍

[英]The named values to use for this statement.

A statement can use either positional or named values, but not both. So if this method returns a non-null result, #getValues(ProtocolVersion,CodecRegistry) will return null.

Values for a RegularStatement (i.e. if either method does not return null) are not supported with the native protocol version 1: you will get an UnsupportedProtocolVersionException when submitting one if version 1 of the protocol is in use (i.e. if you've forced version 1 through Cluster.Builder#withProtocolVersion or you use Cassandra 1.2).
[中]用于此语句的命名值。
语句可以使用位置值或命名值,但不能同时使用两者。因此,如果此方法返回非null结果,#getValues(ProtocolVersion,CodeRegistry)将返回null。
本机协议版本1不支持RegularStatement的值(即,如果其中任何一种方法都不返回null):如果协议版本1正在使用(即,如果您通过Cluster.Builder#with ProtocolVersion或使用Cassandra 1.2)提交一个RegularStatement时,您将得到一个不受支持的ProtocolVersionException。

代码示例

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

if (hasValues()) {
 if (usesNamedValues()) {
  size += CBUtil.sizeOfNamedValueList(getNamedValues(protocolVersion, codecRegistry));
 } else {
  size +=

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

Map<String, ByteBuffer> rawNamedValues = rs.getNamedValues(protocolVersion, codecRegistry);

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

Map<String, ByteBuffer> rawNamedValues = rs.getNamedValues(protocolVersion, codecRegistry);

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

Map<String, ByteBuffer> rawNamedValues = rs.getNamedValues(protocolVersion, codecRegistry);

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

Map<String, ByteBuffer> rawNamedValues = rs.getNamedValues(protocolVersion, codecRegistry);

相关文章