The following line of code is indicating the constructor is not defined. The
only examples I can find of usage of JdbcRDD is Scala examples. Does this work
in Java? Is there any examples? Thanks.
JdbcRDDInteger rdd = new JdbcRDDInteger(sp, () -
ods.getConnection(), sql,
That declaration looks OK for Java 8, at least when I tried it just
now vs master. The only thing I see wrong here is getInt throws an
exception which means the lambda has to be more complicated than this.
This is Java code here calling the constructor so yes it can work fine
from Java (8).
On
hi,
is there a simple example for jdbcRDD from JAVA and not scala,
trying to figure out the last parameter in the constructor of jdbcRDD
thanks
should be able to get away with passing something
generic like ClassTag$.MODULE$.Kapply(Object.class) There's
probably something even simpler.
On Sun, Aug 31, 2014 at 3:07 PM, Ahmad Osama aos...@gmail.com wrote:
hi,
is there a simple example for jdbcRDD from JAVA and not scala,
trying