public interface ReadListener<T> extends Listener
限定符和类型 | 方法和说明 |
---|---|
void |
doAfterAllAnalysed(AnalysisContext context)
if have something to do after all analysis
|
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(java.util.Map<java.lang.Integer,CellData> headMap,
AnalysisContext context)
When analysis one head row trigger invoke function.
|
void |
onException(java.lang.Exception exception,
AnalysisContext context)
All listeners receive this method when any one Listener does an error report.
|
void onException(java.lang.Exception exception, AnalysisContext context) throws java.lang.Exception
exception
- Exceptioncontext
- AnalysisContextjava.lang.Exception
- Exceptionvoid invokeHead(java.util.Map<java.lang.Integer,CellData> headMap, AnalysisContext context)
headMap
- Mapcontext
- AnalysisContextvoid invoke(T data, AnalysisContext context)
data
- one row value. Is is same as AnalysisContext.readRowHolder()
context
- analysis contextvoid doAfterAllAnalysed(AnalysisContext context)
context
- AnalysisContextboolean hasNext(AnalysisContext context)
context
- AnalysisContext