public interface ReadListener<T> extends Listener
| 限定符和类型 | 方法和说明 |
|---|---|
void |
doAfterAllAnalysed(AnalysisContext context)
if have something to do after all analysis
|
void |
extra(CellExtra extra,
AnalysisContext context)
The current method is called when extra information is returned
|
boolean |
hasNext(AnalysisContext context)
Verify that there is another piece of data.You can stop the read by returning false
|
void |
invoke(T data,
AnalysisContext context)
When analysis one row trigger invoke function.
|
void |
invokeHead(Map<Integer,CellData> headMap,
AnalysisContext context)
When analysis one head row trigger invoke function.
|
void |
onException(Exception exception,
AnalysisContext context)
All listeners receive this method when any one Listener does an error report.
|
void onException(Exception exception, AnalysisContext context) throws Exception
exception - context - Exceptionvoid invokeHead(Map<Integer,CellData> headMap, AnalysisContext context)
headMap - context - void invoke(T data, AnalysisContext context)
data - one row value. Is is same as AnalysisContext.readRowHolder()context - analysis contextvoid extra(CellExtra extra, AnalysisContext context)
extra - extra informationcontext - analysis contextvoid doAfterAllAnalysed(AnalysisContext context)
context - boolean hasNext(AnalysisContext context)
context - Copyright © 2018–2021 Alibaba Group. All rights reserved.