Skip to content

Commit 4d9be97

Browse files
pjfanningnightscape
authored andcommitted
use rowCacheSize to control max rows kept in memory
1 parent c4466bb commit 4d9be97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/dev/mauch/spark/excel/v2/ExcelHelper.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class ExcelHelper private (options: ExcelOptions) {
107107
try {
108108
options.maxRowsInMemory match {
109109
case Some(maxRows) => {
110-
val builder = StreamingReader.builder().bufferSize(maxRows)
110+
val builder = StreamingReader.builder().rowCacheSize(maxRows)
111111
options.workbookPassword match {
112112
case Some(password) => builder.password(password)
113113
case _ =>

0 commit comments

Comments
 (0)