You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/MultiResourceItemWriter.java
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2006-2023 the original author or authors.
2
+
* Copyright 2006-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -36,7 +36,11 @@
36
36
* <p>
37
37
* Note that new resources are created only at chunk boundaries i.e. the number of items
38
38
* written into one resource is between the limit set by
39
-
* {@link #setItemCountLimitPerResource(int)} and (limit + chunk size).
39
+
* <p>
40
+
* This writer will create an output file only when there are items to write, which means
41
+
* there would be no empty file created if no items are passed (for example when all items
42
+
* are filtered or skipped during the processing phase).
0 commit comments