{
Client client = connectionFactory.create();
try {
client.set_keyspace(keyspace);
try {
return client.describe_splits_ex(columnFamily, range.start_token, range.end_token, splitSize);
}
catch (TApplicationException e) {
// fallback to guessing split size if talking to a server without describe_splits_ex method
if (e.getType() == TApplicationException.UNKNOWN_METHOD) {
List<String> splitPoints = client.describe_splits(columnFamily, range.start_token, range.end_token, splitSize);