From f8a52ab18bb5628d12a2e94842c73416373b116d Mon Sep 17 00:00:00 2001 From: Jiaju Zhuang Date: Mon, 1 Nov 2021 10:27:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9pagecount?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/alibaba/excel/read/listener/PageReadListener.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/alibaba/excel/read/listener/PageReadListener.java b/src/main/java/com/alibaba/excel/read/listener/PageReadListener.java index a459818d..5ce3adf8 100644 --- a/src/main/java/com/alibaba/excel/read/listener/PageReadListener.java +++ b/src/main/java/com/alibaba/excel/read/listener/PageReadListener.java @@ -15,7 +15,7 @@ public class PageReadListener implements ReadListener { /** * Single handle the amount of data */ - public static final int BATCH_COUNT = 3000; + public static int BATCH_COUNT = 3000; /** * Temporary storage of data */ @@ -34,7 +34,6 @@ public class PageReadListener implements ReadListener { cachedData.add(data); if (cachedData.size() >= BATCH_COUNT) { consumer.accept(cachedData); - // 存储完成清理 list cachedData = ListUtils.newArrayListWithExpectedSize(BATCH_COUNT); } }