Yes, it is possible to use GraphX from Java but it requires 10x the amount of code and involves using obscure typing and pre-defined lambda prototype facilities. I give an example of it in my book, the source code for which can be downloaded for free from https://www.manning.com/books/spark-graphx-in-action The relevant example is EdgeCount.java in chapter 10. As I suggest in my book, likely the only reason you'd want to put yourself through that torture is corporate mandate or compatibility with Java bytecode tools.
From: Sean Owen <so...@cloudera.com> To: Takeshi Yamamuro <linguin....@gmail.com>; "Kumar, Abhishek (US - Bengaluru)" <abhishekkuma...@deloitte.com> Cc: "user@spark.apache.org" <user@spark.apache.org> Sent: Monday, May 30, 2016 7:07 AM Subject: Re: GraphX Java API No, you can call any Scala API in Java. It is somewhat less convenient if the method was not written with Java in mind but does work. On Mon, May 30, 2016, 00:32 Takeshi Yamamuro <linguin....@gmail.com> wrote: These package are used only for Scala. On Mon, May 30, 2016 at 2:23 PM, Kumar, Abhishek (US - Bengaluru) <abhishekkuma...@deloitte.com> wrote: Hey,· I see some graphx packages listed here:http://spark.apache.org/docs/latest/api/java/index.html· org.apache.spark.graphx· org.apache.spark.graphx.impl· org.apache.spark.graphx.lib· org.apache.spark.graphx.utilAren’t they meant to be used with JAVA?Thanks From: Santoshakhilesh [mailto:santosh.akhil...@huawei.com] Sent: Friday, May 27, 2016 4:52 PM To: Kumar, Abhishek (US - Bengaluru) <abhishekkuma...@deloitte.com>; user@spark.apache.org Subject: RE: GraphX Java API GraphX APis are available only in Scala. If you need to use GraphX you need to switch to Scala. From: Kumar, Abhishek (US - Bengaluru) [mailto:abhishekkuma...@deloitte.com] Sent: 27 May 2016 19:59 To: user@spark.apache.org Subject: GraphX Java API Hi, We are trying to consume the Java API for GraphX, but there is no documentation available online on the usage or examples. It would be great if we could get some examples in Java. Thanks and regards, Abhishek Kumar This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and any disclosure, copying, or distribution of this message, or the taking of any action based on it, by you is strictly prohibited.v.E.1 -- --- Takeshi Yamamuro