Package io.vertx.sqlclient

## Interface Query<T>

- All Known Subinterfaces:
    `PreparedQuery<T>`

      public interface Query<T>

  A query.
  Author:
    Julien Viet

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `<R> Query<SqlResult<R>>` | `collecting​(Collector<Row,​?,​R> collector)` | Use the specified `collector` for collecting the query result to `<R>`.
    `Future<T>` | `execute()` | Execute the query.
    `<U> Query<RowSet<U>>` | `mapping​(Function<Row,​U> mapper)` | Use the specified `mapper` for mapping `Row` to `<U>`.

- - ### Method Detail

    - #### execute

          Future<T> execute()

      Execute the query.
      Returns:
        a future notified with the result

    - #### collecting

          <R> Query<SqlResult<R>> collecting​(Collector<Row,​?,​R> collector)

      Use the specified `collector` for collecting the query result to `<R>`.

    - #### mapping

          <U> Query<RowSet<U>> mapping​(Function<Row,​U> mapper)

      Use the specified `mapper` for mapping `Row` to `<U>`.