Datasets are a type-safe version of Spark’s structured API that is a powerful tool for Java and Scala.