kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 3ba5e964edec8c3b9b8a45e11ea0d1cebaaddb0da4dcc51f6cd27ab89fb06511 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2016-01-15 08:43 +01:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2016-01-15 08:56 +01:00 |
| Parents | 28abe791a921 |
1 file changed
modified upgrade_guide/README.md +9 −2
| @@ -18,7 +18,8 @@ | ||
| 18 | 18 | |
| 19 | 19 | Here is a detailed list of breaking API changes: |
| 20 | 20 | * `TypeCodec` was package-private before and is now public. |
| 21 | - * `DataType` has no more references to `TypeCodec`, so most methods that dealt with serialization and deserialization of data types have been removed: | |
| 21 | + * `DataType` has no more references to `TypeCodec`, so methods that dealt with serialization and deserialization of | |
| 22 | + data types have been removed: | |
| 22 | 23 | * `ByteBuffer serialize(Object value, ProtocolVersion protocolVersion)` |
| 23 | 24 | * `ByteBuffer serializeValue(Object value, ProtocolVersion protocolVersion)` |
| 24 | 25 | * `Object deserialize(ByteBuffer bytes, ProtocolVersion protocolVersion)` |
| @@ -26,6 +27,9 @@ | ||
| 26 | 27 | * `Object parse(String value)` |
| 27 | 28 | * `String format(Object value)` |
| 28 | 29 | * `Class<?> asJavaClass()` |
| 30 | + | |
| 31 | + These methods must now be invoked on `TypeCodec` directly. To resolve the `TypeCodec` instance for a particular | |
| 32 | + data type, use `CodecRegistry#codecFor`. | |
| 29 | 33 | * `GettableByIndexData` (affects `Row`, `BoundStatement`, `TupleValue` and `UDTValue`). The following public methods were added: |
| 30 | 34 | * `<T> T get(int i, Class<T> targetClass)` |
| 31 | 35 | * `<T> T get(int i, TypeToken<T> targetType)` |
| @@ -148,7 +152,7 @@ | ||
| 148 | 152 | `setOutgoingPayload(Map<String,ByteBuffer>)` |
| 149 | 153 | * `AbstractSession#prepareAsync(String, Map<String,ByteBuffer>)` |
| 150 | 154 | |
| 151 | - Also, not that `AbstractSession#prepareAsync(Statement)` does not | |
| 155 | + Also, note that `AbstractSession#prepareAsync(Statement)` does not | |
| 152 | 156 | call `AbstractSession#prepareAsync(String)` anymore, they now both |
| 153 | 157 | delegate to a private method. |
| 154 | 158 | |
| @@ -240,6 +244,9 @@ | ||
| 240 | 244 | has been introduced to handle plain text authentication with the |
| 241 | 245 | `DseAuthenticator`. |
| 242 | 246 | |
| 247 | +25. The constructor of `DCAwareRoundRobinPolicy` is not accessible anymore. You | |
| 248 | + should use `DCAwareRoundRobinPolicy#builder()` to create new instances. | |
| 249 | + | |
| 243 | 250 | |
| 244 | 251 | ### 2.1.8 |
| 245 | 252 |