spring-projects / spring-data-cassandra

Provides support to increase developer productivity in Java when using Apache Cassandra. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
https://spring.io/projects/spring-data-cassandra/
Apache License 2.0
374 stars 307 forks source link

Refactor Cassandra query execution and mapping to consolidate mapping [DATACASS-280] #452

Closed spring-projects-issues closed 6 years ago

spring-projects-issues commented 8 years ago

Mark Paluch opened DATACASS-280 and commented

AbstractCassandraQuery and CassandraTemplate perform both conversions when executing queries. Some return types cannot be obtained from the CassandraTemplate in a generic way but must be retrieved by calling lower level methods such as queryForObject.

AbstractCassandraQuery utilizes complex conditionals to execute queries and so wrapping results in wrapper types (Optional, Future, Stream) is quite complex to achieve.

Changes:


Issue Links:

Referenced from: pull request https://github.com/spring-projects/spring-data-cassandra/pull/53, and commits https://github.com/spring-projects/spring-data-cassandra/commit/183c502f7ea89739fe585ab401165b59ca61db33, https://github.com/spring-projects/spring-data-cassandra/commit/4772c5b6289e63fbc050e5a04eeaf6081ba66f98

spring-projects-issues commented 8 years ago

Mark Paluch commented

-Renamed and reorganized test structure should be applied on top of the PR for this ticket. Code is located on branch DATACASS-280-rename-move-all-tests-

spring-projects-issues commented 8 years ago

John Blum commented

Code review complete!