I have been stuck while working with java-driver. I execute a CQL query and fetch all rows.
How do I get the key from the com.datastax.driver.core.Row
object?
I have been stuck while working with java-driver. I execute a CQL query and fetch all rows.
How do I get the key from the com.datastax.driver.core.Row
object?
The same way as any other column, for example myRow.getString("myKey")
There are a bunch of helpfull methods in the Row
class: https://docs.datastax.com/en/drivers/java/2.1/com/datastax/driver/core/Row.html