Skip to content

Commit 904d16a

Browse files
committed
docs: clarify getRowsCount method behavior regarding row count estimation
Signed-off-by: Rivaldi <[email protected]>
1 parent 811fce1 commit 904d16a

File tree

1 file changed

+3
-0
lines changed
  • spring-batch-excel/src/main/java/org/springframework/batch/extensions/excel/support/rowset

1 file changed

+3
-0
lines changed

spring-batch-excel/src/main/java/org/springframework/batch/extensions/excel/support/rowset/RowSetMetaData.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ public interface RowSetMetaData {
3838

3939
/**
4040
* Retrieves the number of available rows for the current sheet.
41+
* <p><strong>Note:</strong> The result might be indeterministic depending on the
42+
* {@code Sheet} implementation used in the {@code RowSetMetaData} implementation.
43+
* Some implementations may return an estimate or cached value rather than the exact count.
4144
* @return total rows
4245
*/
4346
int getRowsCount();

0 commit comments

Comments
 (0)