Elffuss BraidHub

kikocis/java-driver public

Mention changes to Schema Metadata API in 3.0.
Changeset9eae16c9e9b9b89e4ccef4d9a1b09de5d37960e1cde8869fe65e788a72920743
AuthorAlexandre Dutra <alexandre.dutra@datastax.com> · 2016-01-22 19:22 +01:00
CommitterAlexandre Dutra <alexandre.dutra@datastax.com> · 2016-01-22 19:22 +01:00
Parents21aa364a9b4a

Browse the files at this changeset

1 file changed

modified upgrade_guide/README.md +22 −0
@@ -246,6 +246,28 @@
246246
247247 25. The constructor of `DCAwareRoundRobinPolicy` is not accessible anymore. You
248248 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.
249271
250272
251273 ### 2.1.8