use of org.apache.gora.query.ws.impl.PartitionWSQueryImpl in project gora by apache.
the class CassandraStore method getPartitions.
/**
* {@inheritDoc}
*/
@Override
public List<PartitionQuery<K, T>> getPartitions(Query<K, T> query) throws GoraException {
try {
List<PartitionQuery<K, T>> partitions = new ArrayList<>();
PartitionWSQueryImpl<K, T> pqi = new PartitionWSQueryImpl<>(query);
pqi.setDataStore(this);
partitions.add(pqi);
return partitions;
} catch (Exception e) {
throw new GoraException(e);
}
}
Aggregations