zhangyanglei opened a new issue, #661:
URL: https://github.com/apache/fesod/issues/661

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/fesod/issues) and 
found nothing similar.
   
   
   ### Fesod version
   
   1.3.0
   
   ### JDK version
   
   1.8
   
   ### Operating system
   
   _No response_
   
   ### Steps To Reproduce
   
               FastExcel.read(inputStream, new 
AnalysisEventListener<Map<Integer, String>>() {
   
                   private List<String> header = new ArrayList<>();
                   private List<List<String>> rows = new ArrayList<>();
   
                   @Override
                   public void invokeHead(Map<Integer, ReadCellData<?>> 
headMap, AnalysisContext context) {
                       headMap.forEach((k, v) -> {
                           header.add(v.getStringValue());
                       });
                   }
   
                   @Override
                   public void invoke(Map<Integer, String> data, 
AnalysisContext context) {
                       List<String> row = new ArrayList<>();
                       data.forEach((k, v) -> {
                           row.add(v);
                       });
                       rows.add(row);
                   }
   
                   @Override
                   public void doAfterAllAnalysed(AnalysisContext context) {
                       log.info("数据读取完成");
                   }
               }).numRows(2).sheet(0).doRead();
   
   ### Current Behavior
   
   excel有3w+行 只读取表头跟第一行做分析 没有触发log.info("数据读取完成");
   
   ### Expected Behavior
   
   希望限制行数读取之后 也能触发这个调用
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to