public Map<Query, Long> splitQuery(String keyspace, String sql, int splitsPerShard)
throws ConnectionException, DatabaseException {
SplitQueryRequest req = new SplitQueryRequest(sql, keyspace, splitsPerShard);
SplitQueryResponse response = client.splitQuery(req);
if (response.getError() != null) {
throw new DatabaseException(response.getError());
}
return response.getQueries();
}