I would like to display the entire Apache Spark SQL DataFrame with the Scala API. I can use the show() method:
show()
myDataFrame.show(Int.MaxValue)
In java I have tried it with two ways. This is working perfectly for me:
java
1.
data.show(SomeNo);
2.
data.foreach(new ForeachFunction() { public void call(Row arg0) throws Exception { System.out.println(arg0); } });