Preconditions.checkNotNull(clusterName, "Must specify cluster name for table " + table.getTableName());
Preconditions.checkNotNull(keyspaceName, "Must specify keyspace name for table " + table.getTableName());
Preconditions.checkNotNull(columnFamilyName, "Must specify column family name for table " + table.getTableName());
Preconditions.checkNotNull(discoveryType, "Must specify discovery type for table " + table.getTableName());
Keyspace keyspace = clientProvider.acquireKeyspace(new KeyspaceKey(new ClusterKey(clusterName, discoveryType), keyspaceName));
return new AstyanaxThriftDataTableResource(keyspace, columnFamilyName);
}