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>
-
Field Summary
Fields inherited from interface io.vertx.tp.plugin.excel.ExcelClient
BOOT, ENVIRONMENT, MAPPING, PEN, TENANT -
Method Summary
Modifier and TypeMethodDescriptionio.vertx.core.Future<io.vertx.core.buffer.Buffer>exportAsync(String identifier, io.vertx.core.json.JsonArray data) io.vertx.core.Future<io.vertx.core.buffer.Buffer>exportAsync(String identifier, io.vertx.core.json.JsonArray data, io.modello.atom.typed.MetaAtom metaAtom) exportAsync(String identifier, io.vertx.core.json.JsonArray data, io.modello.atom.typed.MetaAtom metaAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.Buffer>> handler) exportAsync(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.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> io.vertx.core.Future<Set<T>>importAsync(InputStream in, boolean isXlsx, io.modello.atom.typed.MetaAtom metaAtom) <T> ExcelClientimportAsync(InputStream in, boolean isXlsx, io.modello.atom.typed.MetaAtom metaAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler) <T> ExcelClientimportAsync(InputStream in, boolean isXlsx, io.modello.atom.typed.MetaAtom metaAtom, 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.modello.atom.typed.MetaAtom metaAtom, String... includes) <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, String... includes) <T> io.vertx.core.Future<Set<T>>importAsync(String filename) <T> io.vertx.core.Future<Set<T>>importAsync(String filename, io.modello.atom.typed.MetaAtom metaAtom) <T> ExcelClientimportAsync(String filename, io.modello.atom.typed.MetaAtom metaAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler) <T> ExcelClientimportAsync(String filename, io.modello.atom.typed.MetaAtom metaAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler, String... includes) <T> io.vertx.core.Future<Set<T>>importAsync(String filename, io.modello.atom.typed.MetaAtom metaAtom, String... includes) <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, String... includes) ingest(InputStream in, boolean isXlsx) ingest(InputStream in, boolean isXlsx, io.modello.atom.typed.MetaAtom metaAtom) ingest(InputStream in, boolean isXlsx, io.modello.atom.typed.MetaAtom metaAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<ExTable>>> handler) ingest(InputStream in, boolean isXlsx, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<ExTable>>> 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 | 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.ingest(String filename, io.modello.atom.typed.MetaAtom metaAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<ExTable>>> handler) ingestAsync(InputStream in, boolean isXlsx) ingestAsync(InputStream in, boolean isXlsx, io.modello.atom.typed.MetaAtom metaAtom) ingestAsync(String filename) ingestAsync(String filename, io.modello.atom.typed.MetaAtom metaAtom) init(io.vertx.core.json.JsonObject config)
-
Method Details
-
init
- Specified by:
initin interfaceExcelClient- Specified by:
initin interfaceio.vertx.up.plugin.TpClient<ExcelClient>
-
ingest
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
- Specified by:
ingestin interfaceExcelClient
-
ingest
- Specified by:
ingestin interfaceExcelClient
-
ingest
- Specified by:
ingestin interfaceExcelClient
-
ingestAsync
- Specified by:
ingestAsyncin interfaceExcelClient
-
ingestAsync
public io.vertx.core.Future<Set<ExTable>> ingestAsync(String filename, io.modello.atom.typed.MetaAtom metaAtom) - Specified by:
ingestAsyncin interfaceExcelClient
-
ingestAsync
- Specified by:
ingestAsyncin interfaceExcelClient
-
ingestAsync
public io.vertx.core.Future<Set<ExTable>> ingestAsync(InputStream in, boolean isXlsx, io.modello.atom.typed.MetaAtom metaAtom) - 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.modello.atom.typed.MetaAtom metaAtom, 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.modello.atom.typed.MetaAtom metaAtom, 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.modello.atom.typed.MetaAtom metaAtom, 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.modello.atom.typed.MetaAtom metaAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler) - Specified by:
importAsyncin interfaceExcelClient
-
importAsync
- Specified by:
importAsyncin interfaceExcelClient
-
importAsync
public <T> io.vertx.core.Future<Set<T>> importAsync(String filename, io.modello.atom.typed.MetaAtom metaAtom) - Specified by:
importAsyncin interfaceExcelClient
-
importAsync
- Specified by:
importAsyncin interfaceExcelClient
-
importAsync
public <T> io.vertx.core.Future<Set<T>> importAsync(InputStream in, boolean isXlsx, io.modello.atom.typed.MetaAtom metaAtom) - 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.modello.atom.typed.MetaAtom metaAtom, 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.modello.atom.typed.MetaAtom metaAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler, String... includes) - Specified by:
importAsyncin interfaceExcelClient
-
importAsync
- Specified by:
importAsyncin interfaceExcelClient
-
importAsync
public <T> io.vertx.core.Future<Set<T>> importAsync(String filename, io.modello.atom.typed.MetaAtom metaAtom, 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.modello.atom.typed.MetaAtom metaAtom, 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.modello.atom.typed.MetaAtom metaAtom, 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.modello.atom.typed.MetaAtom metaAtom) - 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
- Specified by:
extractAsyncin interfaceExcelClient
-
extractAsync
- Specified by:
extractAsyncin interfaceExcelClient
-