Class ExcelClientImpl

    • 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)  
      ExcelClient 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.buffer.Buffer> exportAsync​(String identifier, io.vertx.core.json.JsonArray data, io.vertx.up.commune.element.TypeAtom typeAtom)  
      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)  
      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> ExcelClient importAsync​(InputStream in, boolean isXlsx, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler)  
      <T> ExcelClient importAsync​(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> ExcelClient importAsync​(InputStream in, boolean isXlsx, io.vertx.up.commune.element.TypeAtom typeAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler)  
      <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)  
      <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> 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.
      <T> ExcelClient importAsync​(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> ExcelClient importAsync​(String filename, io.vertx.up.commune.element.TypeAtom typeAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler)  
      <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)  
      <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)  
      ExcelClient ingest​(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)  
      ExcelClient ingest​(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.
      ExcelClient ingest​(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)  
      ExcelClient ingest​(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)  
      ExcelClient init​(io.vertx.core.json.JsonObject config)  
    • Method Detail

      • init

        public ExcelClient init​(io.vertx.core.json.JsonObject config)
        Specified by:
        init in interface ExcelClient
        Specified by:
        init in interface io.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:
        ingest in interface ExcelClient
      • ingestAsync

        public io.vertx.core.Future<Set<ExTable>> ingestAsync​(String filename,
                                                              io.vertx.up.commune.element.TypeAtom typeAtom)
        Specified by:
        ingestAsync in interface ExcelClient
      • 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:
        ingest in interface ExcelClient
      • 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:
        importAsync in interface ExcelClient
      • 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:
        importAsync in interface ExcelClient
      • 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:
        importAsync in interface ExcelClient
      • importAsync

        public <T> io.vertx.core.Future<Set<T>> importAsync​(String filename,
                                                            io.vertx.up.commune.element.TypeAtom typeAtom)
        Specified by:
        importAsync in interface ExcelClient
      • importAsync

        public <T> io.vertx.core.Future<Set<T>> importAsync​(InputStream in,
                                                            boolean isXlsx,
                                                            io.vertx.up.commune.element.TypeAtom typeAtom)
        Specified by:
        importAsync in interface ExcelClient
      • 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:
        importAsync in interface ExcelClient
      • 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:
        importAsync in interface ExcelClient
      • importAsync

        public <T> io.vertx.core.Future<Set<T>> importAsync​(String filename,
                                                            io.vertx.up.commune.element.TypeAtom typeAtom,
                                                            String... includes)
        Specified by:
        importAsync in interface ExcelClient
      • 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:
        importAsync in interface ExcelClient
      • 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:
        exportAsync in interface ExcelClient
      • 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:
        exportAsync in interface ExcelClient
      • 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:
        exportAsync in interface ExcelClient
      • exportAsync

        public io.vertx.core.Future<io.vertx.core.buffer.Buffer> exportAsync​(String identifier,
                                                                             io.vertx.core.json.JsonArray data)
        Specified by:
        exportAsync in interface ExcelClient
      • extractAsync

        public io.vertx.core.Future<io.vertx.core.json.JsonArray> extractAsync​(ExTable table)
        Specified by:
        extractAsync in interface ExcelClient
      • extractAsync

        public io.vertx.core.Future<io.vertx.core.json.JsonArray> extractAsync​(Set<ExTable> tables)
        Specified by:
        extractAsync in interface ExcelClient