Commit Graph

1116 Commits

Author SHA1 Message Date
Mahmoud Ben Hassine
f6a8d10595 Deprecate MultiResourceItemReader#getCurrentResource
Resolves #3776
2020-09-15 17:00:08 +02:00
Michael Minella
7e485a1b2b Polish 2020-09-14 10:01:13 -05:00
Mahmoud Ben Hassine
615a4aee2c Add initial support for Java 14 records mapping
Issue #3693
2020-09-10 10:23:07 +02:00
Mahmoud Ben Hassine
65d31bff1d Polish d65203e2d3
* Minor formatting update
* Use a regexp to discard xml header in tests
2020-09-09 21:09:50 +02:00
Parikshit Dutta
d65203e2d3 Add support for 'standalone' attribute in StaxEventItemWriter
Issue #758
2020-09-09 21:09:10 +02:00
Mahmoud Ben Hassine
ce22cddbbc Add partitionOffsets setter in KafkaItemReaderBuilder
Resolves #3761
2020-08-14 21:39:27 +02:00
Mahmoud Ben Hassine
15a393b8ef Add ability to start reading from a custom offset in KafkaItemReader
Issue #737
2020-08-10 12:18:49 +02:00
Mahmoud Ben Hassine
9dde586442 Open FlatFileItemReader#isComment for extension
Resolves #1134
2020-07-24 16:18:02 +02:00
Mahmoud Ben Hassine
67317e66d0 Open StaxEventItemReader#isFragmentRootElementName for extension
Resolves #1020
2020-07-24 15:14:33 +02:00
Parikshit Dutta
6c5cb2b13d Use BulkOperations API for Remove Operations in MongoItemWriter
Issue #3737
2020-07-17 19:29:52 +02:00
Mahmoud Ben Hassine
e7ea16c9bc Add connection parameter to AbstractCursorItemReader#cleanupOnClose
This change makes it possible to (re)use the same connection used in
the openCursor method to clean up resources when the reader is closed.

Resolves #1696
2020-07-17 10:40:58 +02:00
Mahmoud Ben Hassine
2952e9a039 Add encoding parameter in StaxEventItemReader
Resolves #807
2020-07-15 11:54:55 +02:00
MinJun Kweon
a88b074c8d Add getChunkSize in SimpleCompletionPolicy
resolved #3738
2020-07-13 10:39:47 +02:00
Mahmoud Ben Hassine
4e0d6a982b Polish 3b58fecfe4
* Add query creation test in JpaNamedQueryProviderTests
* Make JpaPagingItemReaderNamedQueryIntegrationTests consistent
  with JpaPagingItemReaderNativeQueryIntegrationTests
2020-06-26 13:51:35 +02:00
Parikshit Dutta
3b58fecfe4 Add support for Named Query in JpaPagingItemReader
Issue #1667
2020-06-26 13:49:33 +02:00
Mahmoud Ben Hassine
d257fcee01 Polish 629497d5bb
* Fix tests in MongoItemWriterBuilderTests
* Minor code refactoring in MongoItemWriter
2020-06-25 13:09:50 +02:00
Parikshit Dutta
629497d5bb Implemented BulkOperations API in MongoItemWriter 2020-06-25 11:56:30 +02:00
Ankur Trapasiya
bbabe0263a Add connectionAutoCommit property in JdbcCursorItemReaderBuilder
Issue #3717
2020-06-02 21:13:28 +02:00
Drummond Dawson
8a6a2bd19a Add beanRowMapper to JdbcPagingItemReaderBuilder
Sets the rowMapper of the JdbcPagingItemReader as
a BeanPropertyRowMapper.

Issue #819
2020-06-02 17:12:45 +02:00
Mahmoud Ben Hassine
e3bc7ded37 Make RepositoryItemWriter use CrudRepository#saveAll by default
Before this commit, the `RepositoryItemWriter` did not use
`CrudRepository#saveAll` by default and one must override
`doWrite` and call it manually, which is not convenient.

This commit makes the writer use `CrudRepository#saveAll`
by default while keeping the possibility to use another
method if desired through the `methodName` parameter.

Resolves #3720
2020-05-29 23:00:11 +02:00
Mahmoud Ben Hassine
91aa17b22f Polish f37fae670b
* Update year in license header
* Update Javadoc formatting
2020-05-20 14:38:12 +02:00
Matthew Ouyang
f37fae670b Add documentation for how an ItemProcessor.process can never receive a null item. 2020-05-20 14:36:24 +02:00
Mahmoud Ben Hassine
9fbd3daa54 Polish 117b7d5f2d
* Update year in license headers
* Add/Amend Javadocs
* Update assertion message to be consistent between the writer and its builder
2020-05-14 10:10:00 +02:00
Dimitrios Liapis
117b7d5f2d Introduce SynchronizedItemStreamWriter
Issue #842
2020-05-14 00:19:10 +02:00
Philippe Marschall
10fd3716f0 Improve TransactionAwareBufferedWriter
TransactionAwareBufferedWriter offers a number of optimization
potentials. First it creates an unnecessary local, temporary char[]
in write(char[], int, int). Second it does not overwrite any of the
#write(String) methods leading to unnecessary intermediate copies.

 * avoid local, temporary char[] in #write(char[], int, int)
 * overwrite #write(String) methods to avoid copies

Together these two changes should help to reduce allocation rate.

Issue: #1166
2020-05-07 16:19:17 +02:00
Parikshit Dutta
56fbc270e2 Removed redundant logical checks from MongoItemReaderBuilder and MongoItemReader
to prevent false alarm for not providing the limit for query or pagesize for the reader

Issue #3673
2020-04-23 12:21:19 +02:00
Ruslan Mustaev
bd016a9444 Add usePersist chain method to JpaItemWriterBuilder 2020-04-17 12:14:22 +02:00
Mahmoud Ben Hassine
78fedb7d41 Fix typo in Javadoc of KafkaItemReader 2020-04-16 12:26:14 +02:00
Santiago Molano
fb21b30d7d Fixed FlatFileItemReaderBuilder LineTokenizer validation
Fixed validation for the FlatFileItemReaderBuilder where no
LineTokenizer had been provided.

Resolves: #3688
2020-03-31 16:14:02 -05:00
Sanghyuk Jung
b9fa9c3786 Fix constructor of JsonItemReader to call setExecutionContextName()
Resolves #3681
2020-03-24 18:36:56 +01:00
Mahmoud Ben Hassine
999ef54328 Add extra check on connection state in AbstractCursorItemReader#doClose
Issue #868
2020-03-18 21:38:42 +01:00
Mahmoud Ben Hassine
f94446878b Fix line tokenizer validation in FlatFileItemReaderBuilder
Resolves #766
2020-03-17 23:27:47 +01:00
Chris Schaefer
d6f90a1d21 BATCH-2270: Allow ScriptEvaluator to be injectable in the ScriptItemProcessor 2020-03-13 09:25:00 +01:00
BenjaminHetzJelli
7f01bf78cf Trim Keywords Followed By Whitespace Other Than The Character ' '
Modify `removeKeyWord(...)` such that the keyword is removed regardless
of what kind of whitespace follows. This is especially useful for those
who read in SQL from a file which has been formatted such that keywords
live on their own lines.

Added unit tests for trimming whitespace.

Resolves #765
2020-03-04 10:43:24 +01:00
Mahmoud Ben Hassine
e0f78d1504 Remove deprecated usage of com.mongodb.util.JSON in MongoItemReader 2020-01-10 12:04:42 +01:00
Mahmoud Ben Hassine
38b43e8aaf Fix default value of comment prefix in FlatFileItemReaderBuilder
Before this commit, the default value of comment prefix in
FlatFileItemReaderBuilder was not consistent with the one in
FlatFileItemReader.

This commit changes the default value of comment prefix to # in
the builder to be consistent with the reader.

Resolves BATCH-2862
2019-12-02 14:31:00 +01:00
Drummond Dawson
e5855c7e6b Support empty comments in FlatFileItemReaderBuilder
Previously, if supplying empty comments or no comments to comments() of the FlatFileItemReaderBuilder, the comments would be ignored and instead use the default comments "#" provided by the FlatFileItemReader.

Resolves BATCH-2837
2019-12-02 11:07:56 +01:00
Mahmoud Ben Hassine
fba1c3adab Polish 62a2e65e20
Add null check for delimiter
2019-11-29 09:24:55 +01:00
Drummond Dawson
62a2e65e20 Support empty delimiter in DelimitedBuilder of FlatFileItemWriterBuilder
Previously, if supplying an empty delimiter, to the delimited().delimiter() of DelimitedBuilder from the parent FlatFileItemWriterBuilder, it would be ignored and instead use the default delimiter ",".

Resolves BATCH-2844
2019-11-29 09:08:19 +01:00
Yanming Zhou
44c0b8d557 Fix wrong indent 2019-11-27 10:41:36 +01:00
Mahmoud Ben Hassine
707b1bf986 Remove the requirement for a Resource to be set
This commit removes the requirement for a Resource to be configured at
build time. This requirement prevented the use of this builder along
with the MultiResourceItemWriter.

Resolves BATCH-2720
2019-11-15 17:46:58 +01:00
Mahmoud Ben Hassine
e7647b94c3 Polish 43b31ae89c 2019-10-21 11:54:30 +02:00
Mahmoud Ben Hassine
43b31ae89c Make the list of streams final in CompositeItemStream
Resolves BATCH-1969
2019-10-21 11:43:58 +02:00
Mahmoud Ben Hassine
5b46c919ea Deprecate ListPreparedStatementSetter in favor of ArgumentPreparedStatementSetter
ListPreparedStatementSetter is almost a duplicate of
ArgumentPreparedStatementSetter except that it accepts a List of
arguments instead of an array of arguments.

Resolves BATCH-2796
2019-09-27 11:05:33 +02:00
Mahmoud Ben Hassine
2306141826 Polish a7092a21e4 2019-09-17 17:06:44 +02:00
mikeldpl
a7092a21e4 Added @Nullable annotation to overriding methods.
Resolves BATCH-2839
2019-09-17 16:50:44 +02:00
Gary Gregory
c4010fbffa Allow access from subclasses to JdbcBatchItemWriter instance variables 2019-09-06 14:38:23 +02:00
Michael Minella
4b9554fcce Polish 2019-08-02 14:33:45 -05:00
Mahmoud Ben Hassine
f26165e764 Polish bd53168ddb 2019-07-30 18:02:34 +02:00
David Turanski
bd53168ddb Implement AvroItemReader and AvroItemWriter
Resolves BATCH-2833
2019-07-30 17:57:54 +02:00