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

    Modifier and Type
    Method
    Description
    io.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>
     
    io.vertx.core.Future<io.vertx.core.json.JsonArray>
     
    <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)
     
    importAsync(InputStream in, boolean isXlsx, io.modello.atom.typed.MetaAtom metaAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler)
     
    importAsync(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)
     
    importAsync(InputStream in, boolean isXlsx, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler)
     
    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, 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)
     
    importAsync(String filename, io.modello.atom.typed.MetaAtom metaAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler)
     
    importAsync(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)
     
    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.
    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, 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)
     
    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.
    ingest(String filename, io.modello.atom.typed.MetaAtom metaAtom)
     
    ingest(String filename, io.modello.atom.typed.MetaAtom metaAtom, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<ExTable>>> handler)
     
    ingest(String filename, 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.modello.atom.typed.MetaAtom metaAtom)
     
    io.vertx.core.Future<Set<ExTable>>
    ingestAsync(String filename)
     
    io.vertx.core.Future<Set<ExTable>>
    ingestAsync(String filename, io.modello.atom.typed.MetaAtom metaAtom)
     
    init(io.vertx.core.json.JsonObject config)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • 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
    • ingest

      public Set<ExTable> ingest(String filename, io.modello.atom.typed.MetaAtom metaAtom)
      Specified by:
      ingest in interface ExcelClient
    • ingest

      public Set<ExTable> ingest(InputStream in, boolean isXlsx)
      Specified by:
      ingest in interface ExcelClient
    • ingest

      public Set<ExTable> ingest(InputStream in, boolean isXlsx, io.modello.atom.typed.MetaAtom metaAtom)
      Specified by:
      ingest in interface ExcelClient
    • ingestAsync

      public io.vertx.core.Future<Set<ExTable>> ingestAsync(String filename)
      Specified by:
      ingestAsync in interface ExcelClient
    • ingestAsync

      public io.vertx.core.Future<Set<ExTable>> ingestAsync(String filename, io.modello.atom.typed.MetaAtom metaAtom)
      Specified by:
      ingestAsync in interface ExcelClient
    • ingestAsync

      public io.vertx.core.Future<Set<ExTable>> ingestAsync(InputStream in, boolean isXlsx)
      Specified by:
      ingestAsync in interface ExcelClient
    • ingestAsync

      public io.vertx.core.Future<Set<ExTable>> ingestAsync(InputStream in, boolean isXlsx, io.modello.atom.typed.MetaAtom metaAtom)
      Specified by:
      ingestAsync in interface ExcelClient
    • ingest

      public ExcelClient ingest(String filename, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<ExTable>>> handler)
      Specified by:
      ingest in interface ExcelClient
    • 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:
      ingest in interface ExcelClient
    • ingest

      public ExcelClient ingest(InputStream in, boolean isXlsx, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<ExTable>>> handler)
      Specified by:
      ingest in interface ExcelClient
    • 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:
      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(InputStream in, boolean isXlsx, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler)
      Specified by:
      importAsync in interface ExcelClient
    • 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:
      importAsync in interface ExcelClient
    • 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:
      importAsync in interface ExcelClient
    • importAsync

      public <T> io.vertx.core.Future<Set<T>> importAsync(String filename)
      Specified by:
      importAsync in interface ExcelClient
    • importAsync

      public <T> io.vertx.core.Future<Set<T>> importAsync(String filename, io.modello.atom.typed.MetaAtom metaAtom)
      Specified by:
      importAsync in interface ExcelClient
    • importAsync

      public <T> io.vertx.core.Future<Set<T>> importAsync(InputStream in, boolean isXlsx)
      Specified by:
      importAsync in interface ExcelClient
    • importAsync

      public <T> io.vertx.core.Future<Set<T>> importAsync(InputStream in, boolean isXlsx, io.modello.atom.typed.MetaAtom metaAtom)
      Specified by:
      importAsync in interface ExcelClient
    • importAsync

      public <T> ExcelClient importAsync(String filename, io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<T>>> handler, String... includes)
      Specified by:
      importAsync in interface ExcelClient
    • 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:
      importAsync in interface ExcelClient
    • importAsync

      public <T> ExcelClient importAsync(InputStream in, boolean isXlsx, 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.modello.atom.typed.MetaAtom metaAtom, 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, String... includes)
      Specified by:
      importAsync in interface ExcelClient
    • importAsync

      public <T> io.vertx.core.Future<Set<T>> importAsync(String filename, io.modello.atom.typed.MetaAtom metaAtom, String... includes)
      Specified by:
      importAsync in interface ExcelClient
    • importAsync

      public <T> io.vertx.core.Future<Set<T>> importAsync(InputStream in, boolean isXlsx, String... includes)
      Specified by:
      importAsync in interface ExcelClient
    • importAsync

      public <T> io.vertx.core.Future<Set<T>> importAsync(InputStream in, boolean isXlsx, io.modello.atom.typed.MetaAtom metaAtom, 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.modello.atom.typed.MetaAtom metaAtom, 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.modello.atom.typed.MetaAtom metaAtom)
      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