We can also get this info from the TableMetadata in the Java driver (http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/TableMetadata.html).  Maybe we should add something somewhere (unit tests?) to ensure that this code agrees with what is in the metadata.