Elffuss BraidHub

kikocis/java-driver public

Minor fixes in upgrade guide.
Changeset3ba5e964edec8c3b9b8a45e11ea0d1cebaaddb0da4dcc51f6cd27ab89fb06511
Authorolim7t <omichallat+github@gmail.com> · 2016-01-15 08:43 +01:00
Committerolim7t <omichallat+github@gmail.com> · 2016-01-15 08:56 +01:00
Parents28abe791a921

Browse the files at this changeset

1 file changed

modified upgrade_guide/README.md +9 −2
@@ -18,7 +18,8 @@
1818
1919 Here is a detailed list of breaking API changes:
2020 * `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:
2223 * `ByteBuffer serialize(Object value, ProtocolVersion protocolVersion)`
2324 * `ByteBuffer serializeValue(Object value, ProtocolVersion protocolVersion)`
2425 * `Object deserialize(ByteBuffer bytes, ProtocolVersion protocolVersion)`
@@ -26,6 +27,9 @@
2627 * `Object parse(String value)`
2728 * `String format(Object value)`
2829 * `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`.
2933 * `GettableByIndexData` (affects `Row`, `BoundStatement`, `TupleValue` and `UDTValue`). The following public methods were added:
3034 * `<T> T get(int i, Class<T> targetClass)`
3135 * `<T> T get(int i, TypeToken<T> targetType)`
@@ -148,7 +152,7 @@
148152 `setOutgoingPayload(Map<String,ByteBuffer>)`
149153 * `AbstractSession#prepareAsync(String, Map<String,ByteBuffer>)`
150154
151- Also, not that `AbstractSession#prepareAsync(Statement)` does not
155+ Also, note that `AbstractSession#prepareAsync(Statement)` does not
152156 call `AbstractSession#prepareAsync(String)` anymore, they now both
153157 delegate to a private method.
154158
@@ -240,6 +244,9 @@
240244 has been introduced to handle plain text authentication with the
241245 `DseAuthenticator`.
242246
247+25. The constructor of `DCAwareRoundRobinPolicy` is not accessible anymore. You
248+ should use `DCAwareRoundRobinPolicy#builder()` to create new instances.
249+
243250
244251 ### 2.1.8
245252