Return-Path: X-Original-To: apmail-spark-dev-archive@minotaur.apache.org Delivered-To: apmail-spark-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EF421183BA for ; Thu, 9 Jul 2015 23:41:50 +0000 (UTC) Received: (qmail 94246 invoked by uid 500); 9 Jul 2015 23:41:49 -0000 Delivered-To: apmail-spark-dev-archive@spark.apache.org Received: (qmail 94155 invoked by uid 500); 9 Jul 2015 23:41:49 -0000 Mailing-List: contact dev-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@spark.apache.org Received: (qmail 94143 invoked by uid 99); 9 Jul 2015 23:41:49 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2015 23:41:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 8471B1A6B96 for ; Thu, 9 Jul 2015 23:41:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3 X-Spam-Level: *** X-Spam-Status: No, score=3 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id b9Fqr33zylhF for ; Thu, 9 Jul 2015 23:41:38 +0000 (UTC) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 30D8943DF1 for ; Thu, 9 Jul 2015 23:41:38 +0000 (UTC) Received: by lblf12 with SMTP id f12so14002162lbl.2 for ; Thu, 09 Jul 2015 16:41:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=3Mj2Rg0LnGtEGk8k1tb4ah+6QfFTL21G71/5kn3oQo8=; b=SS20hp3S7kAAHI824MnfUVGTt7haan98SR1V5CJgjnoOH2DWSVXVi06INE4CmiM5Gy QUZ+IxA8r16KBIm/ZWo69eHaDqXcElPCN3WR3g+AVlMDVcdXBCIyU/NkBc0b2bmfyZAP gPYbMPQdPE3qLPEJK/+fRSx/gSOJSb7QqkWgk7t3qaP8YtbiZIe/EPQIFuJkfIrNnSyN IyXDUC/AJQiSDufxLllEoiev4LAMQ0uOTjBoLJGJ23TQvRfP8gX7/BubdnaAJsmuQjl5 dck7nQ17JPPiZf49oy9gNP9FD8lGtraXh/kgv+WmIQgx8/TfEgNmVyV4hxpooNDveQ5J qKEQ== X-Gm-Message-State: ALoCoQm1tzbhbAYjgetD74xL0qzIgDyx2vzjTi7GuSaj4P0uQ2u7eXGidLVtOSCOo85RFYaSPa5q X-Received: by 10.112.50.230 with SMTP id f6mr17040254lbo.17.1436485291008; Thu, 09 Jul 2015 16:41:31 -0700 (PDT) MIME-Version: 1.0 Reply-To: shivaram@eecs.berkeley.edu Received: by 10.25.158.213 with HTTP; Thu, 9 Jul 2015 16:41:11 -0700 (PDT) In-Reply-To: References: From: Shivaram Venkataraman Date: Thu, 9 Jul 2015 16:41:11 -0700 Message-ID: Subject: Re: callJMethod? To: "Vasili I. Galchin" Cc: "dev@spark.apache.org" Content-Type: multipart/alternative; boundary=001a1133b54e7ef273051a79cb4b --001a1133b54e7ef273051a79cb4b Content-Type: text/plain; charset=UTF-8 callJMethod is a private R function that is defined in https://github.com/apache/spark/blob/a0cc3e5aa3fcfd0fce6813c520152657d327aaf2/R/pkg/R/backend.R#L31 callJMethod serializes the function names, arguments and sends them over a socket to the JVM. This is the socket-based R to JVM bridge described in the Spark Summit talk https://spark-summit.org/2015/events/sparkr-the-past-the-present-and-the-future/ Thanks Shivaram On Thu, Jul 9, 2015 at 4:28 PM, Vasili I. Galchin wrote: > Hello, > > I am reading R code, e.g. RDD.R, DataFrame.R, etc. I see that > callJMethod is repeatedly call. Is callJMethod part of the Spark Java API? > Thx. > > Vasili > --001a1133b54e7ef273051a79cb4b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
callJMethod is a private R function that is defined in=C2= =A0https://github.com/apache/spark/blo= b/a0cc3e5aa3fcfd0fce6813c520152657d327aaf2/R/pkg/R/backend.R#L31
callJMethod serializes the function names, arguments and sends= them over a socket to the JVM. This is the socket-based R to JVM bridge de= scribed in the Spark Summit talk https://spark-summit.org= /2015/events/sparkr-the-past-the-present-and-the-future/

=
Thanks
Shivaram
=
On Thu, Jul 9, 2015 at 4:28 PM, Vasili I. Ga= lchin <vigalchin@gmail.com> wrote:
Hello,

=C2=A0 =C2=A0 =C2=A0 =C2=A0I am rea= ding R code, e.g. RDD.R, DataFrame.R, etc. I see that callJMethod is repeat= edly call. Is callJMethod part of the Spark Java API? Thx.

Vasili

--001a1133b54e7ef273051a79cb4b--