Spark DataSet - Column

About

A dataset column

Management

Select

  • Scala
val ageCol = people("age")
  • Java
Column ageCol = people.col("age"); 

DSL Operation

Addition

The following creates a new column that increases everybody's age by 10.

  • in Scala
people("age") + 10 
  • Java
people.col("age").plus(10); 

More

Documentation / Reference


Powered by ComboStrap