public abstract class DataExtractor extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected ExtractableDataSource |
dataSource |
protected boolean |
end |
protected String[] |
headers |
| 限定符 | 构造器和说明 |
|---|---|
protected |
DataExtractor(ExtractableDataSource dataSource,
String[] headers) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<String[]> |
extract() |
abstract void |
extract(BiConsumer<Integer,String[]> processor) |
List<String[]> |
extract(int count)
Extracts specified count of top rows
|
void |
extract(int batchSize,
Consumer<List<String[]>> action) |
protected boolean |
isNotEmpty(String[] data) |
ValidateResult |
verify(BiFunction<Integer,String[],String> validator)
验证
|
protected final ExtractableDataSource dataSource
protected final String[] headers
protected volatile boolean end
protected DataExtractor(ExtractableDataSource dataSource, String[] headers)
public abstract void extract(BiConsumer<Integer,String[]> processor) throws IOException
IOExceptionpublic final List<String[]> extract() throws IOException
IOExceptionpublic final List<String[]> extract(int count) throws IOException
count - the top rows countIOException - if occur io errorpublic final void extract(int batchSize,
Consumer<List<String[]>> action)
throws IOException
IOExceptionpublic final ValidateResult verify(BiFunction<Integer,String[],String> validator) throws IOException
validator - IOExceptionprotected boolean isNotEmpty(String[] data)
Copyright © 2023. All rights reserved.