Nag
Nag

Reputation: 2047

Spark - there is no type "Dataframe" in Java

I am going through this and this . I clearly see the type"Dataframe" is defined for scala and not for Java. Does that mean type "Dataframe" is not technically supported but rather use Dataset[T] insetad ?

And also, from this , please share inputs about what does it mean - Does that signify the same fact Java doesnt have the construct for dataframe ?

Scala Dataset[T] & DataFrame (alias for Dataset[Row])

Java Dataset[T]

Upvotes: 1

Views: 330

Answers (1)

Levi Ramsey
Levi Ramsey

Reputation: 20541

Java has no concept of a type alias, so in Java, you would need to use

Dataset<org.apache.spark.sql.Row>

to refer to a Dataframe.

Upvotes: 1

Related Questions