Commit Graph

1246 Commits

Author SHA1 Message Date
Mark Paluch
cfc3148dbd DATACASS-707 - Updated changelog. 2020-01-15 12:51:13 +01:00
Mark Paluch
a16e8fb158 DATACASS-706 - Updated changelog. 2020-01-15 10:36:36 +01:00
Mark Paluch
dc2ccc8ba2 DATACASS-714 - Upgrade to Cassandra driver 4.3.1. 2020-01-14 14:40:32 +01:00
Mark Paluch
9b8fbe31fa DATACASS-713 - Rename Session and SessionFactory bean names with cassandra prefix.
We now register the Session under cassandraSession and SessionFactory with cassandraSessionFactory as bean name. ReactiveSession and ReactiveSessionFactory beans are named reactiveCassandraSession respective reactiveCassandraSessionFactory. Beans are consistently named using Java and XML-based configuration avoiding potential clashes with other data integrations that use Session or SessionFactory beans.
2020-01-14 10:26:05 +01:00
Mark Paluch
ee09353cb3 DATACASS-656 - Polishing.
Pick up compression type and session name properties along with SessionBuilderConfigurer.

Include LocalDataCenter in migration guide.
2020-01-14 10:08:58 +01:00
Mark Paluch
15df0fdddb DATACASS-656 - Polishing.
Fix nullability annotation on Update.update(…) to accept null values.
2020-01-08 13:49:13 +01:00
Mark Paluch
3079bcf6e4 DATACASS-656 - Disable schema debouncer.
Allows running tests much faster as we no longer use the debouncer.
2020-01-08 12:20:39 +01:00
Mark Paluch
343983847d DATACASS-656 - Polishing.
Fix references to CqlSession. Typos.

Original pull request: #167.
2020-01-08 12:11:14 +01:00
Mark Paluch
4d08a90eda DATACASS-656 - Move Name enumeration to CassandraType.
CassandraType is a better place for the name enumeration as it provides the necessary context how Cassandra primitives are used than CassandraSimpleTypeHolder.

Original pull request: #167.
2020-01-08 12:11:14 +01:00
Mark Paluch
4098040e71 DATACASS-656 - Update documentation.
Original pull request: #167.
2020-01-08 12:11:14 +01:00
Mark Paluch
5ae8e4c2aa DATACASS-656 - Polishing.
Update license header years to 2020.

Original pull request: #167.
2020-01-08 12:11:14 +01:00
Mark Paluch
b083941b7c DATACASS-656 - Increase test timeouts to run safely on slower environments. 2020-01-08 12:06:56 +01:00
Mark Paluch
2946f2913a DATACASS-656 - Test cleanups.
Original pull request: #167.
2020-01-08 11:47:05 +01:00
Mark Paluch
100a94bfad DATACASS-656 - Introduce MapTerm, SetTerm, and ListTerm.
Collection-type terms cannot properly render tuple values or UDT values so we're translating these to proper CQL using nested term collections.

Original pull request: #167.
2020-01-08 11:47:01 +01:00
Mark Paluch
3bf86dd0b1 DATACASS-656 - Polishing.
Move to Driver's CqlIdentifier in Javadoc.

Original pull request: #167.
2020-01-08 11:46:59 +01:00
Mark Paluch
7e5455ce03 DATACASS-656 - Deprecate forceQuote.
Forced quoting is now deprecated as we're using CqlIdentifier which is able to determine whether an identifier requires quoting.

Original pull request: #167.
2020-01-08 11:46:56 +01:00
Mark Paluch
68a8588df9 DATACASS-656 - Support j.u.Date as TIMESTAMP type.
Cassandra Driver 4 uses LocalDateTime as type for TIMESTAMP. We want to allow also usage of plain old Date to ease migration.

Original pull request: #167.
2020-01-08 11:46:51 +01:00
Mark Paluch
4ded76da0e DATACASS-656 - Migrate to Cassandra driver 4.
Original pull request: #167.
2020-01-08 11:46:48 +01:00
Mark Paluch
67bc99ff0a DATACASS-656 - Migrate QueryOptions.fetchSize and readTimeout to pageSize and timeout.
Use renamed Statement options by introducing new pageSize(…) and timeout(…) methods. Deprecated existing methods. Also, deprecate retryPolicy method in preparation for execution profiles.

Original pull request: #167.
2020-01-08 11:46:42 +01:00
Mark Paluch
968eedbcf9 DATACASS-656 - Add StatementBuilder and AsyncResultStream utilities.
We now provide a utility class to build CQL statements using a fluent functional declaration.

AsyncResultStream can forward-stream over a AsyncResultStream by fetching subsequent pages and applying either a Consumer or Collector for non-blocking processing of asynchronously fetched results.

Original pull request: #167.
2020-01-08 11:46:38 +01:00
Mark Paluch
24f73b89c7 DATACASS-656 - Migrate CQL generators to new CqlIdentifier.
Original pull request: #167.
2020-01-08 11:46:34 +01:00
Mark Paluch
3eb2bb10f0 DATACASS-656 - Add CassandraValueProvider for new driver types (row, tuples, UDT).
Original pull request: #167.
2020-01-08 11:46:29 +01:00
Mark Paluch
7f743e3c4e DATACASS-656 - Migrate CqlSessionFactoryBean to CqlSession.
Original pull request: #167.
2020-01-08 11:46:25 +01:00
Mark Paluch
2dd83238af DATACASS-705 - Introduce FactoryBean for SessionFactory.
We now provide SessionFactoryFactoryBean as factory bean and initializer for a SessionFactory.

<cassandra:session-factory>
	<cassandra:script
			location="my/scripts/schema.cql"/>
</cassandra:session-factory>

Original pull request: #167.
2020-01-08 11:46:21 +01:00
Mark Paluch
efb5b4b5d4 DATACASS-705 - Polishing.
Use consistently -ref.

Original pull request: #167.
2020-01-08 11:46:17 +01:00
Mark Paluch
119c0b499a DATACASS-703 - Move Keyspace initialization from CassandraClusterFactoryBean to CassandraCqlSessionFactoryBean.
Original pull request: #167.
2020-01-08 11:46:14 +01:00
Mark Paluch
bf3ea7ab0a DATACASS-704 - Add utility to initialize and cleanup the CQL keyspace.
Original pull request: #167.
2020-01-08 11:45:06 +01:00
Mark Paluch
7c45340b77 DATACASS-656 - Bump version to 3.0.0.BUILD-SNAPSHOT.
Original pull request: #167.
2020-01-08 11:44:55 +01:00
Mark Paluch
ce8f0467cc DATACASS-711 - Update copyright years to 2020. 2020-01-07 08:36:56 +01:00
Jens Schauder
7bd67eecfd DATACASS-702 - Updated changelog. 2019-12-04 14:32:42 +01:00
Jens Schauder
bfc48fedd3 DATACASS-701 - Updated changelog. 2019-12-04 12:09:44 +01:00
Mark Paluch
5aa269ac58 DATACASS-698 - Updated changelog. 2019-11-18 12:43:25 +01:00
Mark Paluch
3e7e062dab DATACASS-697 - Updated changelog. 2019-11-18 12:16:26 +01:00
Mark Paluch
34ad06d6a7 DATACASS-700 - Retain Sort in paging through repository queries.
SlicedExecution in repository query methods associates the next Pageable with Sort to propagate the pagination configuration across multiple paging requests.
Previously, Sort was not considered causing a corrupt paging state.
2019-11-13 11:36:30 +01:00
Christoph Strobl
daddb04d38 DATACASS-691 - Updated changelog. 2019-11-04 15:39:53 +01:00
Christoph Strobl
0051a2f14d DATACASS-690 - Updated changelog. 2019-11-04 10:34:49 +01:00
Mark Paluch
a2d0979749 DATACASS-696 - Polishing.
Use handle(…) instead of flatMap(…) to suppress null elements in Reactive result set mapping.

Simplify assertions.
2019-10-28 14:59:18 +01:00
Mark Paluch
062bb106d0 DATACASS-696 - Fix return of null values through selectOne(…) and event emission.
Null values are now correctly handled when selecting a single element. We also suppress event emission in CassandraTemplate if the loaded entity is null.
2019-10-28 14:59:18 +01:00
Mark Paluch
6991b6a4fa DATACASS-694 - Polishing.
Add author tags. Reformat code. Adapt remaining tests.

Original pull request: #166.
2019-10-28 09:17:59 +01:00
khurelkhuyag.m
56dd5a2aea DATACASS-694 - Fix Cassandra time to LocalTime conversion.
LocalTime now correctly uses nanoseconds.

Original pull request: #166.
2019-10-28 09:08:20 +01:00
Mark Paluch
86c8d40c54 DATACASS-682 - After release cleanups. 2019-09-30 16:17:29 +02:00
Mark Paluch
8339007b2c DATACASS-682 - Prepare next development iteration. 2019-09-30 16:17:28 +02:00
Mark Paluch
d32d6d122b DATACASS-682 - Release version 2.2 GA (Moore). 2019-09-30 15:51:07 +02:00
Mark Paluch
1a66333a05 DATACASS-682 - Prepare 2.2 GA (Moore). 2019-09-30 15:50:43 +02:00
Mark Paluch
8d5489e048 DATACASS-682 - Updated changelog. 2019-09-30 15:50:38 +02:00
Mark Paluch
6fcea63902 DATACASS-681 - Updated changelog. 2019-09-30 11:16:16 +02:00
Sebastien Deleuze
3ce48577b2 DATACASS-689 - Remove @ExperimentalCoroutinesApi annotations.
Original pull request: #165.
2019-09-30 09:41:48 +02:00
Mark Paluch
75f4d76324 DATACASS-688 - Add documentation for Kotlin support. 2019-09-27 12:12:22 +02:00
Mark Paluch
3ac03744cd DATACASS-687 - Polishing.
Adapt unit tests.
2019-09-25 15:00:12 +02:00
Mark Paluch
daa7f582db DATACASS-687 - Polishing.
Adapt unit tests.
2019-09-25 14:53:25 +02:00