kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 99cb8c3fcdfe7255834df709edb2851281176d71fa70a422e6af176fb3a70026 |
|---|---|
| Author | Alexandre Dutra <alexandre.dutra@datastax.com> · 2015-10-20 16:52 +02:00 |
| Committer | Alexandre Dutra <alexandre.dutra@datastax.com> · 2015-11-13 11:24 +01:00 |
| Parents | 92def205f1cf |
17 files changed
modified changelog/README.md +2 −0
| @@ -8,6 +8,7 @@ | ||
| 8 | 8 | - [improvement] JAVA-885: Pass the authenticator name from the server to the auth provider. |
| 9 | 9 | - [improvement] JAVA-961: Raise an exception when an older version of guava (<16.01) is found. |
| 10 | 10 | - [bug] JAVA-972: TypeCodec.parse() implementations should be case insensitive when checking for keyword NULL. |
| 11 | +- [bug] JAVA-971: Make type codecs invariant. | |
| 11 | 12 | |
| 12 | 13 | Merged from 2.1 branch: |
| 13 | 14 | |
| @@ -25,6 +26,7 @@ | ||
| 25 | 26 | - [improvement] JAVA-652: Add DCAwareRoundRobinPolicy builder. |
| 26 | 27 | - [improvement] JAVA-808: Add generic filtering policy that can be used to exclude specific DCs. |
| 27 | 28 | |
| 29 | + | |
| 28 | 30 | ### 3.0.0-alpha4 |
| 29 | 31 | |
| 30 | 32 | - [improvement] JAVA-926: Change default consistency level to LOCAL_QUORUM. |
modified driver-core/src/main/java/com/datastax/driver/core/TypeCodec.java +18 −5
| @@ -508,6 +508,15 @@ | ||
| 508 | 508 | /** |
| 509 | 509 | * Return {@code true} if this codec is capable of serializing |
| 510 | 510 | * the given {@code javaType}. |
| 511 | + * <p> | |
| 512 | + * The implementation is <em>invariant</em> with respect to the passed | |
| 513 | + * argument (through the usage of {@link TypeToken#equals(Object)} | |
| 514 | + * and <em>it's strongly recommended not to modify this behavior</em>. | |
| 515 | + * This means that a codec will only ever accept the | |
| 516 | + * <em>exact</em> Java type that it has been created for. | |
| 517 | + * <p> | |
| 518 | + * If the argument represents a Java primitive type, its wrapper type | |
| 519 | + * is considered instead. | |
| 511 | 520 | * |
| 512 | 521 | * @param javaType The Java type this codec should serialize from and deserialize to; cannot be {@code null}. |
| 513 | 522 | * @return {@code true} if the codec is capable of serializing |
| @@ -519,7 +528,7 @@ | ||
| 519 | 528 | if (javaType.isPrimitive()) { |
| 520 | 529 | javaType = primitiveToWrapperMap.get(javaType); |
| 521 | 530 | } |
| 522 | - return this.javaType.isAssignableFrom(javaType); | |
| 531 | + return this.javaType.equals(javaType); | |
| 523 | 532 | } |
| 524 | 533 | |
| 525 | 534 | /** |
| @@ -548,13 +557,17 @@ | ||
| 548 | 557 | * <p> |
| 549 | 558 | * Implementation notes: |
| 550 | 559 | * <ol> |
| 560 | + * <li>The default implementation is <em>covariant</em> with respect to the passed | |
| 561 | + * argument (through the usage of {@link TypeToken#isAssignableFrom(TypeToken)} | |
| 562 | + * and <em>it's strongly recommended not to modify this behavior</em>. | |
| 563 | + * This means that, by default, a codec will accept | |
| 564 | + * <em>any subtype</em> of the Java type that it has been created for.</li> | |
| 551 | 565 | * <li>The base implementation provided here can only handle non-parameterized types; |
| 552 | 566 | * codecs handling parameterized types, such as collection types, must override |
| 553 | 567 | * this method and perform some sort of "manual" |
| 554 | 568 | * inspection of the actual type parameters.</li> |
| 555 | - * <li>Similarly, codecs that only accept a partial subset of all possible values, | |
| 556 | - * such as {@link TimeUUIDCodec} or {@link AsciiCodec}, must override | |
| 557 | - * this method and manually inspect the object to check if it | |
| 569 | + * <li>Similarly, codecs that only accept a partial subset of all possible values | |
| 570 | + * must override this method and manually inspect the object to check if it | |
| 558 | 571 | * complies or not with the codec's limitations.</li> |
| 559 | 572 | * </ol> |
| 560 | 573 | * |
| @@ -565,7 +578,7 @@ | ||
| 565 | 578 | */ |
| 566 | 579 | public boolean accepts(Object value) { |
| 567 | 580 | checkNotNull(value); |
| 568 | - return accepts(TypeToken.of(value.getClass())); | |
| 581 | + return this.javaType.isAssignableFrom(TypeToken.of(value.getClass())); | |
| 569 | 582 | } |
| 570 | 583 | |
| 571 | 584 | @Override |
modified driver-core/src/test/java/com/datastax/driver/core/TypeCodecTest.java +8 −4
| @@ -184,8 +184,13 @@ | ||
| 184 | 184 | ACodec aCodec = new ACodec(); |
| 185 | 185 | codecRegistry.register(aCodec); |
| 186 | 186 | assertThat(codecRegistry.codecFor(cint(), A.class)).isNotNull().isSameAs(aCodec); |
| 187 | - // inheritance works: B is assignable to A | |
| 188 | - assertThat(codecRegistry.codecFor(cint(), B.class)).isNotNull().isSameAs(aCodec); | |
| 187 | + try { | |
| 188 | + // covariance not accepted: no codec handles B exactly | |
| 189 | + codecRegistry.codecFor(cint(), B.class); | |
| 190 | + fail(); | |
| 191 | + } catch (CodecNotFoundException e) { | |
| 192 | + //ok | |
| 193 | + } | |
| 189 | 194 | TypeCodec<List<A>> expected = TypeCodec.list(aCodec); |
| 190 | 195 | TypeCodec<List<A>> actual = codecRegistry.codecFor(list(cint()), new TypeToken<List<A>>(){}); |
| 191 | 196 | assertThat(actual.getCqlType()).isEqualTo(expected.getCqlType()); |
| @@ -214,8 +219,7 @@ | ||
| 214 | 219 | // ok |
| 215 | 220 | } |
| 216 | 221 | TypeCodec<List<B>> expectedB = TypeCodec.list(bCodec); |
| 217 | - TypeCodec<List<B>> actualB = codecRegistry.codecFor(list(cint()), new TypeToken<List<B>>() { | |
| 218 | - }); | |
| 222 | + TypeCodec<List<B>> actualB = codecRegistry.codecFor(list(cint()), new TypeToken<List<B>>(){}); | |
| 219 | 223 | assertThat(actualB.getCqlType()).isEqualTo(expectedB.getCqlType()); |
| 220 | 224 | assertThat(actualB.getJavaType()).isEqualTo(expectedB.getJavaType()); |
| 221 | 225 | } |
modified features/README.md +2 −2
| @@ -6,12 +6,12 @@ | ||
| 6 | 6 | If you're reading this from the [generated HTML documentation on |
| 7 | 7 | github.io](http://datastax.github.io/java-driver/), use the "Read More" |
| 8 | 8 | menu on the right hand side. If you're [browsing the source files on |
| 9 | -github.com](https://github.com/datastax/java-driver/tree/2.2/features), | |
| 9 | +github.com](https://github.com/datastax/java-driver/tree/3.0/features), | |
| 10 | 10 | simply navigate to each sub-directory. |
| 11 | 11 | |
| 12 | 12 | This is a work in progress: new sections will be added to cover existing |
| 13 | 13 | features or document new ones. |
| 14 | 14 | |
| 15 | 15 | You can also find more help in the legacy |
| 16 | -[user documentation](http://docs.datastax.com/en/developer/java-driver/2.2/java-driver/whatsNew2.html) | |
| 16 | +[user documentation](http://docs.datastax.com/en/developer/java-driver/2.1/java-driver/whatsNew2.html) | |
| 17 | 17 | on the DataStax website. |
modified features/address_resolution/README.md +2 −2
| @@ -31,7 +31,7 @@ | ||
| 31 | 31 | Note: the contact points provided while creating the `Cluster` are not translated, only |
| 32 | 32 | addresses retrieved from or sent by Cassandra nodes are. |
| 33 | 33 | |
| 34 | -[at]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/policies/AddressTranslator.html | |
| 34 | +[at]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/policies/AddressTranslator.html | |
| 35 | 35 | |
| 36 | 36 | ### EC2 multi-region |
| 37 | 37 | |
| @@ -56,4 +56,4 @@ | ||
| 56 | 56 | target instance. Then it performs a forward DNS lookup of the domain name; the EC2 DNS does the |
| 57 | 57 | private/public switch automatically based on location. |
| 58 | 58 | |
| 59 | -[ec2]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/policies/EC2MultiRegionAddressTranslator.html | |
| 59 | +[ec2]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/policies/EC2MultiRegionAddressTranslator.html |
modified features/custom_codecs/README.md +42 −3
| @@ -374,6 +374,45 @@ | ||
| 374 | 374 | Foo<Bar> foo = row.get(0, Foo.class); |
| 375 | 375 | ``` |
| 376 | 376 | |
| 377 | +### Support for subtype polymorphism | |
| 378 | + | |
| 379 | +Suppose the following class hierarchy: | |
| 380 | + | |
| 381 | +```java | |
| 382 | +class Animal {} | |
| 383 | +class Cat extends Animal {} | |
| 384 | +``` | |
| 385 | + | |
| 386 | +By default, a codec will accept to serialize any object that extends or | |
| 387 | +implements its declared Java type: a codec such as | |
| 388 | +`AnimalCodec extends TypeCodec<Animal>` will accept `Cat` instances as well. | |
| 389 | + | |
| 390 | +This allows a codec to handle interfaces and superclasses | |
| 391 | +in a generic way, regardless of the actual implementation being | |
| 392 | +used by client code; for example, the driver has a built-in codec | |
| 393 | +that handles `List` instances, and this codec is capable of | |
| 394 | +serializing any concrete `List` implementation. | |
| 395 | + | |
| 396 | +But this has one caveat: when setting or retrieving values | |
| 397 | +with `get()` and `set()`, *it is vital to pass the exact | |
| 398 | +Java type the codec handles*: | |
| 399 | + | |
| 400 | +```java | |
| 401 | +codecRegistry.register(new AnimalCodec()); | |
| 402 | +BoundStatement bs = ... | |
| 403 | +bs.set(0, new Cat(), Animal.class); // works | |
| 404 | +bs.set(0, new Cat(), Cat.class); // throws CodecNotFoundException | |
| 405 | +``` | |
| 406 | + | |
| 407 | +The same is valid when retrieving values: | |
| 408 | + | |
| 409 | +```java | |
| 410 | +codecRegistry.register(new AnimalCodec()); | |
| 411 | +Row row = ... | |
| 412 | +Animal animal = row.get(0, Animal.class); // works | |
| 413 | +Cat cat = row.get(0, Cat.class); // throws CodecNotFoundException | |
| 414 | +``` | |
| 415 | + | |
| 377 | 416 | ### Performance considerations |
| 378 | 417 | |
| 379 | 418 | A codec lookup operation may be costly; to mitigate this, the `CodecRegistry` |
| @@ -390,8 +429,8 @@ | ||
| 390 | 429 | 4. if the creation succeeds, the registry adds the created codec to the cache and returns it; |
| 391 | 430 | 5. otherwise, the registry throws [CodecNotFoundException]. |
| 392 | 431 | |
| 393 | -The cache can be used as long as _at least the CQL type is known_. The following situations | |
| 394 | -are exceptions where it is _not_ possible to cache lookup results: | |
| 432 | +The cache can be used as long as *at least the CQL type is known*. The following situations | |
| 433 | +are exceptions where it is *not* possible to cache lookup results: | |
| 395 | 434 | |
| 396 | 435 | * With [SimpleStatement] instances; |
| 397 | 436 | * With [BuiltStatement] instances (created via the Query Builder). |
| @@ -422,7 +461,7 @@ | ||
| 422 | 461 | [CustomType]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/DataType.CustomType.html |
| 423 | 462 | [TypeToken]: http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/reflect/TypeToken.html |
| 424 | 463 | [SimpleStatement]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/SimpleStatement.html |
| 425 | -[BuiltStatement]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/BuiltStatement.html | |
| 464 | +[BuiltStatement]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/querybuilder/BuiltStatement.html | |
| 426 | 465 | [setList]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/SettableByIndexData.html#setList(int,%20java.util.List) |
| 427 | 466 | [setSet]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/SettableByIndexData.html#setSet(int,%20java.util.Set) |
| 428 | 467 | [setMap]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/SettableByIndexData.html#setMap(int,%20java.util.Map) |
modified features/custom_payloads/README.md +2 −2
| @@ -241,8 +241,8 @@ | ||
| 241 | 241 | [CASSANDRA-8553]: https://issues.apache.org/jira/browse/CASSANDRA-8553 |
| 242 | 242 | [v4spec]: https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v4.spec |
| 243 | 243 | [qh]: https://issues.apache.org/jira/browse/CASSANDRA-6659 |
| 244 | -[nhae]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/exceptions/NoHostAvailableException.html | |
| 244 | +[nhae]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/exceptions/NoHostAvailableException.html | |
| 245 | 245 | [chm]: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentHashMap.html |
| 246 | 246 | [immutablemap]: http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/collect/ImmutableMap.html |
| 247 | -[ufe]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/exceptions/UnsupportedFeatureException.html | |
| 247 | +[ufe]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/exceptions/UnsupportedFeatureException.html | |
| 248 | 248 |
modified features/logging/README.md +1 −1
| @@ -303,4 +303,4 @@ | ||
| 303 | 303 | </log4j:configuration> |
| 304 | 304 | ``` |
| 305 | 305 | |
| 306 | -[query_logger]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/QueryLogger.html | |
| 306 | +[query_logger]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/QueryLogger.html |
modified features/metadata/README.md +17 −17
| @@ -4,7 +4,7 @@ | ||
| 4 | 4 | is connected to. It is available via |
| 5 | 5 | [Cluster#getMetadata()][getMetadata]. |
| 6 | 6 | |
| 7 | -[getMetadata]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Cluster.html#getMetadata() | |
| 7 | +[getMetadata]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Cluster.html#getMetadata() | |
| 8 | 8 | |
| 9 | 9 | ### Schema metadata |
| 10 | 10 | |
| @@ -12,8 +12,8 @@ | ||
| 12 | 12 | to get keyspace-level metadata. From there you can access the keyspace's |
| 13 | 13 | objects (tables, and UDTs and UDFs if relevant). |
| 14 | 14 | |
| 15 | -[getKeyspace]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Metadata.html#getKeyspace(java.lang.String) | |
| 16 | -[getKeyspaces]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Metadata.html#getKeyspaces() | |
| 15 | +[getKeyspace]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Metadata.html#getKeyspace(java.lang.String) | |
| 16 | +[getKeyspaces]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Metadata.html#getKeyspaces() | |
| 17 | 17 | |
| 18 | 18 | #### Refreshes |
| 19 | 19 | |
| @@ -135,9 +135,9 @@ | ||
| 135 | 135 | |
| 136 | 136 | Check out the API docs for the features in this section: |
| 137 | 137 | |
| 138 | -* [withMaxSchemaAgreementWaitSeconds(int)](http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Cluster.Builder.html#withMaxSchemaAgreementWaitSeconds(int)) | |
| 139 | -* [isSchemaInAgreement()](http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/ExecutionInfo.html#isSchemaInAgreement()) | |
| 140 | -* [checkSchemaAgreement()](http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Metadata.html#checkSchemaAgreement()) | |
| 138 | +* [withMaxSchemaAgreementWaitSeconds(int)](http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Cluster.Builder.html#withMaxSchemaAgreementWaitSeconds(int)) | |
| 139 | +* [isSchemaInAgreement()](http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/ExecutionInfo.html#isSchemaInAgreement()) | |
| 140 | +* [checkSchemaAgreement()](http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Metadata.html#checkSchemaAgreement()) | |
| 141 | 141 | |
| 142 | 142 | |
| 143 | 143 | ### Token metadata |
| @@ -181,14 +181,14 @@ | ||
| 181 | 181 | table (see |
| 182 | 182 | [CASSANDRA-7688](https://issues.apache.org/jira/browse/CASSANDRA-7688)). |
| 183 | 183 | |
| 184 | -[metadata]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Metadata.html | |
| 185 | -[getTokenRanges]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Metadata.html#getTokenRanges() | |
| 186 | -[getTokenRanges2]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Metadata.html#getTokenRanges(java.lang.String,%20com.datastax.driver.core.Host) | |
| 187 | -[getReplicas]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Metadata.html#getReplicas(java.lang.String,%20com.datastax.driver.core.TokenRange) | |
| 188 | -[newToken]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Metadata.html#newToken(java.lang.String) | |
| 189 | -[newTokenRange]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Metadata.html#newTokenRange(com.datastax.driver.core.Token,%20com.datastax.driver.core.Token) | |
| 190 | -[TokenRange]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/TokenRange.html | |
| 191 | -[getTokens]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Host.html#getTokens() | |
| 192 | -[setToken]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/BoundStatement.html#setToken(int,%20com.datastax.driver.core.Token) | |
| 193 | -[getToken]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Row.html#getToken(int) | |
| 194 | -[getPKToken]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Row.html#getPartitionKeyToken() | |
| 184 | +[metadata]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Metadata.html | |
| 185 | +[getTokenRanges]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Metadata.html#getTokenRanges() | |
| 186 | +[getTokenRanges2]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Metadata.html#getTokenRanges(java.lang.String,%20com.datastax.driver.core.Host) | |
| 187 | +[getReplicas]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Metadata.html#getReplicas(java.lang.String,%20com.datastax.driver.core.TokenRange) | |
| 188 | +[newToken]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Metadata.html#newToken(java.lang.String) | |
| 189 | +[newTokenRange]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Metadata.html#newTokenRange(com.datastax.driver.core.Token,%20com.datastax.driver.core.Token) | |
| 190 | +[TokenRange]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/TokenRange.html | |
| 191 | +[getTokens]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Host.html#getTokens() | |
| 192 | +[setToken]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/BoundStatement.html#setToken(int,%20com.datastax.driver.core.Token) | |
| 193 | +[getToken]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Row.html#getToken(int) | |
| 194 | +[getPKToken]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Row.html#getPartitionKeyToken() |
modified features/native_protocol/README.md +5 −5
| @@ -59,7 +59,7 @@ | ||
| 59 | 59 | [/127.0.0.1:9042] Host /127.0.0.1:9042 does not support protocol version V3 but V2)) |
| 60 | 60 | ``` |
| 61 | 61 | |
| 62 | -[gpv]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/ProtocolOptions.html#getProtocolVersion() | |
| 62 | +[gpv]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/ProtocolOptions.html#getProtocolVersion() | |
| 63 | 63 | |
| 64 | 64 | #### Protocol version with mixed clusters |
| 65 | 65 | |
| @@ -90,19 +90,19 @@ | ||
| 90 | 90 | #### v1 to v2 |
| 91 | 91 | |
| 92 | 92 | * bound variables in simple statements |
| 93 | - ([Session#execute(String, Object...)](http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Session.html#execute(java.lang.String,%20java.lang.Object...))) | |
| 94 | -* [batch statements](http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/BatchStatement.html) | |
| 93 | + ([Session#execute(String, Object...)](http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Session.html#execute(java.lang.String,%20java.lang.Object...))) | |
| 94 | +* [batch statements](http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/BatchStatement.html) | |
| 95 | 95 | * [query paging](../paging/) |
| 96 | 96 | |
| 97 | 97 | #### v2 to v3 |
| 98 | 98 | |
| 99 | 99 | * the number of stream ids per connection goes from 128 to 32768 (see |
| 100 | 100 | [Connection pooling](../pooling/)) |
| 101 | -* [serial consistency on batch statements](http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/BatchStatement.html#setSerialConsistencyLevel(com.datastax.driver.core.ConsistencyLevel)) | |
| 101 | +* [serial consistency on batch statements](http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/BatchStatement.html#setSerialConsistencyLevel(com.datastax.driver.core.ConsistencyLevel)) | |
| 102 | 102 | * [client-side timestamps](../query_timestamps/) |
| 103 | 103 | |
| 104 | 104 | #### v3 to v4 |
| 105 | 105 | |
| 106 | -* [query warnings](http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/ExecutionInfo.html#getWarnings()) | |
| 106 | +* [query warnings](http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/ExecutionInfo.html#getWarnings()) | |
| 107 | 107 | * allowed unset values in bound statements |
| 108 | 108 | * [Custom payloads](../custom_payloads/) |
modified features/object_mapper/creating/README.md +13 −13
| @@ -43,9 +43,9 @@ | ||
| 43 | 43 | ones annotated `@Transient`) must have corresponding setters and |
| 44 | 44 | getters. |
| 45 | 45 | |
| 46 | -[table]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/mapping/annotations/Table.html | |
| 46 | +[table]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/mapping/annotations/Table.html | |
| 47 | 47 | [case-sensitive]:http://docs.datastax.com/en/cql/3.3/cql/cql_reference/ucase-lcase_r.html |
| 48 | -[consistency level]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/ConsistencyLevel.html | |
| 48 | +[consistency level]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/ConsistencyLevel.html | |
| 49 | 49 | |
| 50 | 50 | #### Column names |
| 51 | 51 | |
| @@ -54,7 +54,7 @@ | ||
| 54 | 54 | name, or [case-sensitive] names, use the [@Column][column] annotation on |
| 55 | 55 | the field. |
| 56 | 56 | |
| 57 | -[column]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/mapping/annotations/Column.html | |
| 57 | +[column]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/mapping/annotations/Column.html | |
| 58 | 58 | |
| 59 | 59 | #### Primary key fields |
| 60 | 60 | |
| @@ -78,8 +78,8 @@ | ||
| 78 | 78 | The order of the indices must match that of the columns in the table |
| 79 | 79 | declaration. |
| 80 | 80 | |
| 81 | -[pk]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/mapping/annotations/PartitionKey.html | |
| 82 | -[cc]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/mapping/annotations/ClusteringColumn.html | |
| 81 | +[pk]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/mapping/annotations/PartitionKey.html | |
| 82 | +[cc]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/mapping/annotations/ClusteringColumn.html | |
| 83 | 83 | [pks]:http://thelastpickle.com/blog/2013/01/11/primary-keys-in-cql.html |
| 84 | 84 | |
| 85 | 85 | #### Enumerations |
| @@ -105,7 +105,7 @@ | ||
| 105 | 105 | private Gender gender; |
| 106 | 106 | ``` |
| 107 | 107 | |
| 108 | -[enum]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/mapping/annotations/Enumerated.html | |
| 108 | +[enum]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/mapping/annotations/Enumerated.html | |
| 109 | 109 | |
| 110 | 110 | #### Computed fields |
| 111 | 111 | |
| @@ -140,13 +140,13 @@ | ||
| 140 | 140 | [JAVA-832](https://datastax-oss.atlassian.net/browse/JAVA-832)). |
| 141 | 141 | |
| 142 | 142 | [User Defined Functions]:http://www.planetcassandra.org/blog/user-defined-functions-in-cassandra-3-0/ |
| 143 | -[computed]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/mapping/annotations/Computed.html | |
| 143 | +[computed]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/mapping/annotations/Computed.html | |
| 144 | 144 | |
| 145 | 145 | #### Transient fields |
| 146 | 146 | |
| 147 | 147 | [@Transient][transient] can be used to prevent a field from being mapped. |
| 148 | 148 | |
| 149 | -[transient]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/mapping/annotations/Transient.html | |
| 149 | +[transient]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/mapping/annotations/Transient.html | |
| 150 | 150 | |
| 151 | 151 | ### Mapping User Types |
| 152 | 152 | |
| @@ -207,8 +207,8 @@ | ||
| 207 | 207 | arbitrary level of nesting) |
| 208 | 208 | |
| 209 | 209 | [User Defined Types]:http://docs.datastax.com/en/developer/java-driver/2.1/java-driver/reference/userDefinedTypes.html |
| 210 | -[udt]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/mapping/annotations/UDT.html | |
| 211 | -[field]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/mapping/annotations/Field.html | |
| 210 | +[udt]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/mapping/annotations/UDT.html | |
| 211 | +[field]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/mapping/annotations/Field.html | |
| 212 | 212 | |
| 213 | 213 | ### Mapping collections |
| 214 | 214 | |
| @@ -244,6 +244,6 @@ | ||
| 244 | 244 | private Map<String, List<Address>> frozenValueMap; |
| 245 | 245 | ``` |
| 246 | 246 | |
| 247 | -[frozen]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/mapping/annotations/Frozen.html | |
| 248 | -[frozenkey]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/mapping/annotations/FrozenKey.html | |
| 249 | -[frozenvalue]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/mapping/annotations/FrozenValue.html | |
| 247 | +[frozen]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/mapping/annotations/Frozen.html | |
| 248 | +[frozenkey]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/mapping/annotations/FrozenKey.html | |
| 249 | +[frozenvalue]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/mapping/annotations/FrozenValue.html |
modified features/object_mapper/custom_codecs/README.md +3 −3
| @@ -98,9 +98,9 @@ | ||
| 98 | 98 | |
| 99 | 99 | This also works with [@Field][field] and [@Param][param] annotations. |
| 100 | 100 | |
| 101 | -[column]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/mapping/annotations/Column.html | |
| 102 | -[field]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/mapping/annotations/Field.html | |
| 103 | -[param]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/mapping/annotations/Param.html | |
| 101 | +[column]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/mapping/annotations/Column.html | |
| 102 | +[field]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/mapping/annotations/Field.html | |
| 103 | +[param]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/mapping/annotations/Param.html | |
| 104 | 104 | |
| 105 | 105 | |
| 106 | 106 | ## Implicit UDT codecs |
modified features/object_mapper/using/README.md +6 −6
| @@ -28,9 +28,9 @@ | ||
| 28 | 28 | calling `manager#mapper` more than once for the same class will return |
| 29 | 29 | the previously generated mapper. |
| 30 | 30 | |
| 31 | -[Mapper]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/mapping/Mapper.html | |
| 32 | -[MappingManager]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/mapping/MappingManager.html | |
| 33 | -[Session]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Session.html | |
| 31 | +[Mapper]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/mapping/Mapper.html | |
| 32 | +[MappingManager]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/mapping/MappingManager.html | |
| 33 | +[Session]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Session.html | |
| 34 | 34 | |
| 35 | 35 | #### Basic CRUD operations |
| 36 | 36 | |
| @@ -174,7 +174,7 @@ | ||
| 174 | 174 | and `isExhausted()`. Note that iterating the `Result` will consume the |
| 175 | 175 | `ResultSet`, and vice-versa. |
| 176 | 176 | |
| 177 | -[Result]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/mapping/Result.html | |
| 177 | +[Result]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/mapping/Result.html | |
| 178 | 178 | |
| 179 | 179 | ### Accessors |
| 180 | 180 | |
| @@ -224,7 +224,7 @@ | ||
| 224 | 224 | ResultSet insert(@Param("u") UUID userId, @Param("n") String name); |
| 225 | 225 | ``` |
| 226 | 226 | |
| 227 | -[param]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/mapping/annotations/Param.html | |
| 227 | +[param]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/mapping/annotations/Param.html | |
| 228 | 228 | |
| 229 | 229 | If a method argument is a Java enumeration, it must be annotated with |
| 230 | 230 | `@Enumerated` to indicate how to convert it to a CQL type (the rules are |
| @@ -292,4 +292,4 @@ | ||
| 292 | 292 | public ListenableFuture<Result<User>> getAllAsync(); |
| 293 | 293 | ``` |
| 294 | 294 | |
| 295 | -[@QueryParameters]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/mapping/annotations/QueryParameters.html | |
| 295 | +[@QueryParameters]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/mapping/annotations/QueryParameters.html |
modified features/paging/README.md +4 −4
| @@ -171,8 +171,8 @@ | ||
| 171 | 171 | } |
| 172 | 172 | ``` |
| 173 | 173 | |
| 174 | -[result_set]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/ResultSet.html | |
| 175 | -[paging_state]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/PagingState.html | |
| 174 | +[result_set]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/ResultSet.html | |
| 175 | +[paging_state]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/PagingState.html | |
| 176 | 176 | |
| 177 | 177 | |
| 178 | 178 | Due to internal implementation details, `PagingState` instances are not |
| @@ -214,8 +214,8 @@ | ||
| 214 | 214 | implementing your own validation logic (for example, signing the raw |
| 215 | 215 | state with a private key). |
| 216 | 216 | |
| 217 | -[gpsu]: http://www.datastax.com/drivers/java/2.2/com/datastax/driver/core/ExecutionInfo.html#getPagingStateUnsafe() | |
| 218 | -[spsu]: http://www.datastax.com/drivers/java/2.2/com/datastax/driver/core/Statement.html#setPagingStateUnsafe(byte[]) | |
| 217 | +[gpsu]: http://www.datastax.com/drivers/java/3.0/com/datastax/driver/core/ExecutionInfo.html#getPagingStateUnsafe() | |
| 218 | +[spsu]: http://www.datastax.com/drivers/java/3.0/com/datastax/driver/core/Statement.html#setPagingStateUnsafe(byte[]) | |
| 219 | 219 | |
| 220 | 220 | ### Offset queries |
| 221 | 221 |
modified features/pooling/README.md +11 −11
| @@ -277,14 +277,14 @@ | ||
| 277 | 277 | [newConnectionThreshold][nct] so that enough connections are added by |
| 278 | 278 | the time you reach the bottleneck. |
| 279 | 279 | |
| 280 | -[result_set_future]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/ResultSetFuture.html | |
| 281 | -[pooling_options]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/PoolingOptions.html | |
| 282 | -[lbp]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/policies/LoadBalancingPolicy.html | |
| 283 | -[nct]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/PoolingOptions.html#setNewConnectionThreshold(com.datastax.driver.core.HostDistance,%20int) | |
| 284 | -[mrpc]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/PoolingOptions.html#setMaxRequestsPerConnection(com.datastax.driver.core.HostDistance,%20int) | |
| 285 | -[sits]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/PoolingOptions.html#setIdleTimeoutSeconds(int) | |
| 286 | -[rtm]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/SocketOptions.html#getReadTimeoutMillis() | |
| 287 | -[exec_async]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Session.html#executeAsync(com.datastax.driver.core.Statement) | |
| 288 | -[ptm]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/PoolingOptions.html#setPoolTimeoutMillis(int) | |
| 289 | -[nhae]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/exceptions/NoHostAvailableException.html | |
| 290 | -[get_state]:http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Session.html#getState() | |
| 280 | +[result_set_future]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/ResultSetFuture.html | |
| 281 | +[pooling_options]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/PoolingOptions.html | |
| 282 | +[lbp]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/policies/LoadBalancingPolicy.html | |
| 283 | +[nct]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/PoolingOptions.html#setNewConnectionThreshold(com.datastax.driver.core.HostDistance,%20int) | |
| 284 | +[mrpc]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/PoolingOptions.html#setMaxRequestsPerConnection(com.datastax.driver.core.HostDistance,%20int) | |
| 285 | +[sits]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/PoolingOptions.html#setIdleTimeoutSeconds(int) | |
| 286 | +[rtm]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/SocketOptions.html#getReadTimeoutMillis() | |
| 287 | +[exec_async]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Session.html#executeAsync(com.datastax.driver.core.Statement) | |
| 288 | +[ptm]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/PoolingOptions.html#setPoolTimeoutMillis(int) | |
| 289 | +[nhae]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/exceptions/NoHostAvailableException.html | |
| 290 | +[get_state]:http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Session.html#getState() |
modified features/query_timestamps/README.md +3 −3
| @@ -16,7 +16,7 @@ | ||
| 16 | 16 | |
| 17 | 17 | ### Client-side generation |
| 18 | 18 | |
| 19 | -This is enabled by default if you're using the driver 2.2 and a version | |
| 19 | +This is enabled by default if you're using the driver 3.0 and a version | |
| 20 | 20 | of Cassandra that supports [native protocol](../native_protocol) v3 or |
| 21 | 21 | above. |
| 22 | 22 | |
| @@ -42,8 +42,8 @@ | ||
| 42 | 42 | session.execute(statement); |
| 43 | 43 | ``` |
| 44 | 44 | |
| 45 | -[tsg]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/TimestampGenerator.html | |
| 46 | -[amtsg]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/AtomicMonotonicTimestampGenerator.html | |
| 45 | +[tsg]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/TimestampGenerator.html | |
| 46 | +[amtsg]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/AtomicMonotonicTimestampGenerator.html | |
| 47 | 47 | |
| 48 | 48 | |
| 49 | 49 | ### Server-side generation |
modified features/speculative_execution/README.md +11 −11
| @@ -108,8 +108,8 @@ | ||
| 108 | 108 | cluster.getConfiguration().getQueryOptions().setDefaultIdempotence(true); |
| 109 | 109 | ``` |
| 110 | 110 | |
| 111 | -[isIdempotent]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Statement.html#isIdempotent() | |
| 112 | -[QueryBuilder]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/querybuilder/QueryBuilder.html | |
| 111 | +[isIdempotent]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Statement.html#isIdempotent() | |
| 112 | +[QueryBuilder]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/querybuilder/QueryBuilder.html | |
| 113 | 113 | |
| 114 | 114 | ### Enabling speculative executions |
| 115 | 115 | |
| @@ -118,7 +118,7 @@ | ||
| 118 | 118 | `Cluster`. This policy defines the threshold after which a new |
| 119 | 119 | speculative execution will be triggered. |
| 120 | 120 | |
| 121 | -[sep]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/policies/SpeculativeExecutionPolicy.html | |
| 121 | +[sep]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/policies/SpeculativeExecutionPolicy.html | |
| 122 | 122 | |
| 123 | 123 | Two implementations are provided with the driver: |
| 124 | 124 | |
| @@ -146,7 +146,7 @@ | ||
| 146 | 146 | * if no response has been received at t0 + 1000 milliseconds, start |
| 147 | 147 | another speculative execution on a third node. |
| 148 | 148 | |
| 149 | -[csep]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/policies/ConstantSpeculativeExecutionPolicy.html | |
| 149 | +[csep]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/policies/ConstantSpeculativeExecutionPolicy.html | |
| 150 | 150 | |
| 151 | 151 | #### [PercentileSpeculativeExecutionPolicy][psep] |
| 152 | 152 | |
| @@ -207,9 +207,9 @@ | ||
| 207 | 207 | logger (see the [Logging](../logging/) section). In that case, you would |
| 208 | 208 | create a single tracker object and share it with both components. |
| 209 | 209 | |
| 210 | -[psep]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/policies/PercentileSpeculativeExecutionPolicy.html | |
| 210 | +[psep]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/policies/PercentileSpeculativeExecutionPolicy.html | |
| 211 | 211 | [hdr]: http://hdrhistogram.github.io/HdrHistogram/ |
| 212 | -[phpt]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/PerHostPercentileTracker.html | |
| 212 | +[phpt]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/PerHostPercentileTracker.html | |
| 213 | 213 | |
| 214 | 214 | #### Using your own |
| 215 | 215 | |
| @@ -263,7 +263,7 @@ | ||
| 263 | 263 | The only impact is that all executions of the same query always share |
| 264 | 264 | the same query plan, so each host will be used by at most one execution. |
| 265 | 265 | |
| 266 | -[retry_policy]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/policies/RetryPolicy.html | |
| 266 | +[retry_policy]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/policies/RetryPolicy.html | |
| 267 | 267 | |
| 268 | 268 | ### Tuning and practical details |
| 269 | 269 | |
| @@ -278,8 +278,8 @@ | ||
| 278 | 278 | It should only be a few percents of the total number of requests |
| 279 | 279 | ([cluster.getMetrics().getRequestsTimer().getCount()][request_metric]). |
| 280 | 280 | |
| 281 | -[se_metric]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Metrics.Errors.html#getSpeculativeExecutions() | |
| 282 | -[request_metric]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Metrics.html#getRequestsTimer() | |
| 281 | +[se_metric]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Metrics.Errors.html#getSpeculativeExecutions() | |
| 282 | +[request_metric]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Metrics.html#getRequestsTimer() | |
| 283 | 283 | |
| 284 | 284 | #### Stream id exhaustion |
| 285 | 285 | |
| @@ -308,8 +308,8 @@ | ||
| 308 | 308 | using, you can check with |
| 309 | 309 | [cluster.getConfiguration().getProtocolOptions().getProtocolVersion()][protocol_version]. |
| 310 | 310 | |
| 311 | -[session_state]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Session.State.html | |
| 312 | -[protocol_version]: http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/ProtocolOptions.html#getProtocolVersion() | |
| 311 | +[session_state]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Session.State.html | |
| 312 | +[protocol_version]: http://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/ProtocolOptions.html#getProtocolVersion() | |
| 313 | 313 | |
| 314 | 314 | #### Request ordering and client timestamps |
| 315 | 315 |