/**
   * @param data Data array.
   * @throws IgniteCheckedException If failed.
   */
  protected GridH2ResultSetIterator(ResultSet data) throws IgniteCheckedException {
    this.data = data;

    if (data != null) {
      try {
        row = new Object[data.getMetaData().getColumnCount()];
      } catch (SQLException e) {
        throw new IgniteCheckedException(e);
      }
    } else row = null;
  }