kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 9eae16c9e9b9b89e4ccef4d9a1b09de5d37960e1cde8869fe65e788a72920743 |
|---|---|
| Author | Alexandre Dutra <alexandre.dutra@datastax.com> · 2016-01-22 19:22 +01:00 |
| Committer | Alexandre Dutra <alexandre.dutra@datastax.com> · 2016-01-22 19:22 +01:00 |
| Parents | 21aa364a9b4a |
1 file changed
modified upgrade_guide/README.md +22 −0
| @@ -246,6 +246,28 @@ | ||
| 246 | 246 | |
| 247 | 247 | 25. The constructor of `DCAwareRoundRobinPolicy` is not accessible anymore. You |
| 248 | 248 | should use `DCAwareRoundRobinPolicy#builder()` to create new instances. |
| 249 | + | |
| 250 | +26. `ColumnMetadata.getTable()` has been renamed to `ColumnMetadata.getParent()`. | |
| 251 | + Also, its return type is now `AbstractTableMetadata` which can be either | |
| 252 | + a `TableMetadata` object or a `MaterializedViewMetadata` object. | |
| 253 | + This change is motivated by the fact that a column can now belong to a | |
| 254 | + table or a materialized view. | |
| 255 | + | |
| 256 | +27. `ColumnMetadata.getIndex()` has been removed. | |
| 257 | + This is due to the fact that secondary indexes have been completely redesigned | |
| 258 | + in Cassandra 3.0, and the former one-to-one relationship between a column and its index | |
| 259 | + has been replaced with a one-to-many relationship between a table and its indexes. | |
| 260 | + This is reflected in the driver's API by the new methods | |
| 261 | + `TableMetadata.getIndexes()` and `TableMetadata.getIndex(String name)`. | |
| 262 | + See [CASSANDRA-9459](https://issues.apache.org/jira/browse/CASSANDRA-9459) and | |
| 263 | + and [JAVA-1008](https://datastax-oss.atlassian.net/browse/JAVA-1008) for | |
| 264 | + more details. | |
| 265 | + Unfortunately, there is no easy way to recover the functionality provided | |
| 266 | + by the deleted method, _even for Cassandra versions <= 3.0_. | |
| 267 | + | |
| 268 | +28. `IndexMetadata` is now a top-level class and its structure has been deeply modified. | |
| 269 | + Again, this is due to the fact that secondary indexes have been completely redesigned | |
| 270 | + in Cassandra 3.0. | |
| 249 | 271 | |
| 250 | 272 | |
| 251 | 273 | ### 2.1.8 |