0

I am trying out spark-neo4j connector. In examples of this link, I found following line:

neo.cypher("MATCH (n:Person) RETURN id(n)").loadRdd[Long].mean

I am trying to convert this line to Java equivalent. But I am not getting how should I proceed for lack of my understanding of scala. The issue is with loadRdd[Long].

Mahesha999
  • 22,693
  • 29
  • 116
  • 189

1 Answers1

0

I don't know much about spark, but I would expect the java would be:

neo.cypher("MATCH (n:Person) RETURN id(n)").<long>loadRdd().mean()
Michael Deardeuff
  • 10,386
  • 5
  • 51
  • 74
Alvaro Carrasco
  • 6,103
  • 16
  • 24