Using version 3 of the Cassandra Java driver, how do you determine whether a column has a secondary index on it?
Using version 2 of the driver, I could simply check whether ColumnMetadata.getIndex()
returns non-null. But that method was removed:
This is due to the fact that secondary indexes have been completely redesigned in Cassandra 3.0... Unfortunately, there is no easy way to recover the functionality provided by the deleted method