public class PageReadListener<T> extends Object implements ReadListener<T>
| Modifier and Type | Field and Description |
|---|---|
static int |
BATCH_COUNT
Default single handle the amount of data
|
| Constructor and Description |
|---|
PageReadListener(Consumer<List<T>> consumer) |
PageReadListener(Consumer<List<T>> consumer,
int batchCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
doAfterAllAnalysed(AnalysisContext context)
if have something to do after all analysis
|
void |
invoke(T data,
AnalysisContext context)
When analysis one row trigger invoke function.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitextra, hasNext, invokeHead, onExceptionpublic void invoke(T data, AnalysisContext context)
ReadListenerinvoke in interface ReadListener<T>data - one row value. It is same as AnalysisContext.readRowHolder()context - analysis contextpublic void doAfterAllAnalysed(AnalysisContext context)
ReadListenerdoAfterAllAnalysed in interface ReadListener<T>Copyright © 2018–2024 Alibaba Group. All rights reserved.