Package io.vertx.tp.plugin.excel
Class ExcelClientImpl
- java.lang.Object
-
- io.vertx.tp.plugin.excel.ExcelClientImpl
-
- All Implemented Interfaces:
ExcelClient,io.vertx.up.plugin.TpClient<ExcelClient>
public class ExcelClientImpl extends Object implements ExcelClient
-
-
Field Summary
-
Fields inherited from interface io.vertx.tp.plugin.excel.ExcelClient
BOOT, ENVIRONMENT, MAPPING, PEN, TENANT
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.vertx.core.Future<io.vertx.core.buffer.Buffer>exportAsync(String identifier, io.vertx.core.json.JsonArray data)ExcelClientexportAsync(String identifier, io.vertx.core.json.JsonArray data, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.Buffer>> handler)io.vertx.core.Future<io.vertx.core.buffer.Buffer>exportAsync(String identifier, io.vertx.core.json.JsonArray data, io.vertx.up.commune.element.TypeAtom typeAtom)ExcelClientexportAsync(String identifier, io.vertx.core.json.JsonArray data, io.vertx.up.commune.element.TypeAtom typeAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.Buffer>> handler)io.vertx.core.Future<io.vertx.core.json.JsonArray>extractAsync(ExTable table)io.vertx.core.Future<io.vertx.core.json.JsonArray>extractAsync(Set<ExTable> tables)<T> io.vertx.core.Future<Set<T>>importAsync(InputStream in, boolean isXlsx)<T> ExcelClientimportAsync(InputStream in, boolean isXlsx, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler)<T> ExcelClientimportAsync(InputStream in, boolean isXlsx, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler, String... includes)<T> io.vertx.core.Future<Set<T>>importAsync(InputStream in, boolean isXlsx, io.vertx.up.commune.element.TypeAtom typeAtom)<T> ExcelClientimportAsync(InputStream in, boolean isXlsx, io.vertx.up.commune.element.TypeAtom typeAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler)<T> ExcelClientimportAsync(InputStream in, boolean isXlsx, io.vertx.up.commune.element.TypeAtom typeAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler, String... includes)<T> io.vertx.core.Future<Set<T>>importAsync(InputStream in, boolean isXlsx, io.vertx.up.commune.element.TypeAtom typeAtom, String... includes)<T> io.vertx.core.Future<Set<T>>importAsync(InputStream in, boolean isXlsx, String... includes)<T> io.vertx.core.Future<Set<T>>importAsync(String filename)<T> ExcelClientimportAsync(String filename, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler)1) Api for ingest of parameters, the matrix is as following | filename/input-stream | 2003/2007 | Shape | Async | | filename | by extension ( .xls, .xlsx ) | x | true | | input-stream | isXlsx, true for 2007 | x | true | | filename | by extension ( .xls, .xlsx ) | V | true | | input-stream | isXlsx, true for 2007 | V | true | 2) 12 mode of `ingest` here 2.1) The input contains two categories: -- 1.<T> ExcelClientimportAsync(String filename, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler, String... includes)<T> io.vertx.core.Future<Set<T>>importAsync(String filename, io.vertx.up.commune.element.TypeAtom typeAtom)<T> ExcelClientimportAsync(String filename, io.vertx.up.commune.element.TypeAtom typeAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler)<T> ExcelClientimportAsync(String filename, io.vertx.up.commune.element.TypeAtom typeAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler, String... includes)<T> io.vertx.core.Future<Set<T>>importAsync(String filename, io.vertx.up.commune.element.TypeAtom typeAtom, String... includes)<T> io.vertx.core.Future<Set<T>>importAsync(String filename, String... includes)Set<ExTable>ingest(InputStream in, boolean isXlsx)ExcelClientingest(InputStream in, boolean isXlsx, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<ExTable>>> handler)Set<ExTable>ingest(InputStream in, boolean isXlsx, io.vertx.up.commune.element.TypeAtom typeAtom)ExcelClientingest(InputStream in, boolean isXlsx, io.vertx.up.commune.element.TypeAtom typeAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<ExTable>>> handler)Set<ExTable>ingest(String filename)1) Api for ingest of parameters, the matrix is as following | filename/input-stream | 2003/2007 | Shape | Async | | filename | by extension ( .xls, .xlsx ) | x | false | | input-stream | isXlsx, true for 2007 | x | false | | filename | by extension ( .xls, .xlsx ) | V | false | | input-stream | isXlsx, true for 2007 | V | false | | filename | by extension ( .xls, .xlsx ) | x | true | | input-stream | isXlsx, true for 2007 | x | true | | filename | by extension ( .xls, .xlsx ) | V | true | | input-stream | isXlsx, true for 2007 | V | true | 2) 12 mode of `ingest` here 2.1) The input contains two categories: -- 1.ExcelClientingest(String filename, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<ExTable>>> handler)Set<ExTable>ingest(String filename, io.vertx.up.commune.element.TypeAtom typeAtom)ExcelClientingest(String filename, io.vertx.up.commune.element.TypeAtom typeAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<ExTable>>> handler)io.vertx.core.Future<Set<ExTable>>ingestAsync(InputStream in, boolean isXlsx)io.vertx.core.Future<Set<ExTable>>ingestAsync(InputStream in, boolean isXlsx, io.vertx.up.commune.element.TypeAtom typeAtom)io.vertx.core.Future<Set<ExTable>>ingestAsync(String filename)io.vertx.core.Future<Set<ExTable>>ingestAsync(String filename, io.vertx.up.commune.element.TypeAtom typeAtom)ExcelClientinit(io.vertx.core.json.JsonObject config)
-
-
-
Method Detail
-
init
public ExcelClient init(io.vertx.core.json.JsonObject config)
- Specified by:
initin interfaceExcelClient- Specified by:
initin interfaceio.vertx.up.plugin.TpClient<ExcelClient>
-
ingest
public Set<ExTable> ingest(String filename)
1) Api for ingest of parameters, the matrix is as following | filename/input-stream | 2003/2007 | Shape | Async | | filename | by extension ( .xls, .xlsx ) | x | false | | input-stream | isXlsx, true for 2007 | x | false | | filename | by extension ( .xls, .xlsx ) | V | false | | input-stream | isXlsx, true for 2007 | V | false | | filename | by extension ( .xls, .xlsx ) | x | true | | input-stream | isXlsx, true for 2007 | x | true | | filename | by extension ( .xls, .xlsx ) | V | true | | input-stream | isXlsx, true for 2007 | V | true | 2) 12 mode of `ingest` here 2.1) The input contains two categories: -- 1. InputStream for byte array input, in this mode, you must provide `isXlsx` parameter -- 2. filename of input, the format should be distinguish by file extension `.xls` for 2003, `.xlsx` for 2007 2.2) The Shape contains `Dynamic` importing in Ox channel or other build `Shape` object, it contains type definition 2.2) async contains ( Sync, Callback, Future ) three mode- Specified by:
ingestin interfaceExcelClient
-
ingest
public Set<ExTable> ingest(String filename, io.vertx.up.commune.element.TypeAtom typeAtom)
- Specified by:
ingestin interfaceExcelClient
-
ingest
public Set<ExTable> ingest(InputStream in, boolean isXlsx)
- Specified by:
ingestin interfaceExcelClient
-
ingest
public Set<ExTable> ingest(InputStream in, boolean isXlsx, io.vertx.up.commune.element.TypeAtom typeAtom)
- Specified by:
ingestin interfaceExcelClient
-
ingestAsync
public io.vertx.core.Future<Set<ExTable>> ingestAsync(String filename)
- Specified by:
ingestAsyncin interfaceExcelClient
-
ingestAsync
public io.vertx.core.Future<Set<ExTable>> ingestAsync(String filename, io.vertx.up.commune.element.TypeAtom typeAtom)
- Specified by:
ingestAsyncin interfaceExcelClient
-
ingestAsync
public io.vertx.core.Future<Set<ExTable>> ingestAsync(InputStream in, boolean isXlsx)
- Specified by:
ingestAsyncin interfaceExcelClient
-
ingestAsync
public io.vertx.core.Future<Set<ExTable>> ingestAsync(InputStream in, boolean isXlsx, io.vertx.up.commune.element.TypeAtom typeAtom)
- Specified by:
ingestAsyncin interfaceExcelClient
-
ingest
public ExcelClient ingest(String filename, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<ExTable>>> handler)
- Specified by:
ingestin interfaceExcelClient
-
ingest
public ExcelClient ingest(String filename, io.vertx.up.commune.element.TypeAtom typeAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<ExTable>>> handler)
- Specified by:
ingestin interfaceExcelClient
-
ingest
public ExcelClient ingest(InputStream in, boolean isXlsx, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<ExTable>>> handler)
- Specified by:
ingestin interfaceExcelClient
-
ingest
public ExcelClient ingest(InputStream in, boolean isXlsx, io.vertx.up.commune.element.TypeAtom typeAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<ExTable>>> handler)
- Specified by:
ingestin interfaceExcelClient
-
importAsync
public <T> ExcelClient importAsync(String filename, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler)
1) Api for ingest of parameters, the matrix is as following | filename/input-stream | 2003/2007 | Shape | Async | | filename | by extension ( .xls, .xlsx ) | x | true | | input-stream | isXlsx, true for 2007 | x | true | | filename | by extension ( .xls, .xlsx ) | V | true | | input-stream | isXlsx, true for 2007 | V | true | 2) 12 mode of `ingest` here 2.1) The input contains two categories: -- 1. InputStream for byte array input, in this mode, you must provide `isXlsx` parameter -- 2. filename of input, the format should be distinguish by file extension `.xls` for 2003, `.xlsx` for 2007 2.2) The Shape contains `Dynamic` importing in Ox channel or other build `Shape` object, it contains type definition 2.2) async contains ( Sync, Callback, Future ) three mode- Specified by:
importAsyncin interfaceExcelClient
-
importAsync
public <T> ExcelClient importAsync(InputStream in, boolean isXlsx, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler)
- Specified by:
importAsyncin interfaceExcelClient
-
importAsync
public <T> ExcelClient importAsync(String filename, io.vertx.up.commune.element.TypeAtom typeAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler)
- Specified by:
importAsyncin interfaceExcelClient
-
importAsync
public <T> ExcelClient importAsync(InputStream in, boolean isXlsx, io.vertx.up.commune.element.TypeAtom typeAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler)
- Specified by:
importAsyncin interfaceExcelClient
-
importAsync
public <T> io.vertx.core.Future<Set<T>> importAsync(String filename)
- Specified by:
importAsyncin interfaceExcelClient
-
importAsync
public <T> io.vertx.core.Future<Set<T>> importAsync(String filename, io.vertx.up.commune.element.TypeAtom typeAtom)
- Specified by:
importAsyncin interfaceExcelClient
-
importAsync
public <T> io.vertx.core.Future<Set<T>> importAsync(InputStream in, boolean isXlsx)
- Specified by:
importAsyncin interfaceExcelClient
-
importAsync
public <T> io.vertx.core.Future<Set<T>> importAsync(InputStream in, boolean isXlsx, io.vertx.up.commune.element.TypeAtom typeAtom)
- Specified by:
importAsyncin interfaceExcelClient
-
importAsync
public <T> ExcelClient importAsync(String filename, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler, String... includes)
- Specified by:
importAsyncin interfaceExcelClient
-
importAsync
public <T> ExcelClient importAsync(String filename, io.vertx.up.commune.element.TypeAtom typeAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler, String... includes)
- Specified by:
importAsyncin interfaceExcelClient
-
importAsync
public <T> ExcelClient importAsync(InputStream in, boolean isXlsx, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler, String... includes)
- Specified by:
importAsyncin interfaceExcelClient
-
importAsync
public <T> ExcelClient importAsync(InputStream in, boolean isXlsx, io.vertx.up.commune.element.TypeAtom typeAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler, String... includes)
- Specified by:
importAsyncin interfaceExcelClient
-
importAsync
public <T> io.vertx.core.Future<Set<T>> importAsync(String filename, String... includes)
- Specified by:
importAsyncin interfaceExcelClient
-
importAsync
public <T> io.vertx.core.Future<Set<T>> importAsync(String filename, io.vertx.up.commune.element.TypeAtom typeAtom, String... includes)
- Specified by:
importAsyncin interfaceExcelClient
-
importAsync
public <T> io.vertx.core.Future<Set<T>> importAsync(InputStream in, boolean isXlsx, String... includes)
- Specified by:
importAsyncin interfaceExcelClient
-
importAsync
public <T> io.vertx.core.Future<Set<T>> importAsync(InputStream in, boolean isXlsx, io.vertx.up.commune.element.TypeAtom typeAtom, String... includes)
- Specified by:
importAsyncin interfaceExcelClient
-
exportAsync
public ExcelClient exportAsync(String identifier, io.vertx.core.json.JsonArray data, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.Buffer>> handler)
- Specified by:
exportAsyncin interfaceExcelClient
-
exportAsync
public ExcelClient exportAsync(String identifier, io.vertx.core.json.JsonArray data, io.vertx.up.commune.element.TypeAtom typeAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.Buffer>> handler)
- Specified by:
exportAsyncin interfaceExcelClient
-
exportAsync
public io.vertx.core.Future<io.vertx.core.buffer.Buffer> exportAsync(String identifier, io.vertx.core.json.JsonArray data, io.vertx.up.commune.element.TypeAtom typeAtom)
- Specified by:
exportAsyncin interfaceExcelClient
-
exportAsync
public io.vertx.core.Future<io.vertx.core.buffer.Buffer> exportAsync(String identifier, io.vertx.core.json.JsonArray data)
- Specified by:
exportAsyncin interfaceExcelClient
-
extractAsync
public io.vertx.core.Future<io.vertx.core.json.JsonArray> extractAsync(ExTable table)
- Specified by:
extractAsyncin interfaceExcelClient
-
extractAsync
public io.vertx.core.Future<io.vertx.core.json.JsonArray> extractAsync(Set<ExTable> tables)
- Specified by:
extractAsyncin interfaceExcelClient
-
-