Spring Data Cassandra中的分页和排序查询

4
根据Spring-data-cassandra文档http://docs.spring.io/spring-data/cassandra/docs/1.1.1.RELEASE/reference/html/#requirements,支持Paging和Sorting查询。但是当我使用Interface PagingAndSortingRepository时,分页查询会抛出以下异常。以下是我的接口定义。
@EnableCassandraRepositories
public interface PersonRepository extends PagingAndSortingRepository<User, String>

以下是堆栈跟踪信息:
Caused by: org.springframework.dao.InvalidDataAccessApiUsageException: neither slice nor page queries are supported yet
 at org.springframework.data.cassandra.repository.query.CassandraQueryMethod.verify(CassandraQueryMethod.java:80)
 at org.springframework.data.cassandra.repository.query.CassandraQueryMethod.<init>(CassandraQueryMethod.java:68)
 at org.springframework.data.cassandra.repository.support.CassandraRepositoryFactory$CassandraQueryLookupStrategy.resolveQuery(CassandraRepositoryFactory.java:106)
 at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.<init>(RepositoryFactorySupport.java:357)
 at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:192)
 at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.initAndReturn(RepositoryFactoryBeanSupport.java:239)
 at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:225)
 at org.springframework.data.cassandra.repository.support.CassandraRepositoryFactoryBean.afterPropertiesSet(CassandraRepositoryFactoryBean.java:62)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1613)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1550)
 ... 11 more

Please help !!!

1个回答

2

似乎对于Cassandra尚未实现。 - RickDavis
1
嗯,那基本上就是我说的。 - Matthew Adams

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接