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