how to write in java
public <U> Dataset<U> transform(scala.Function1<Dataset<T>,Dataset<U>> t)Concise syntax for chaining custom transformations. def featurize(ds: Dataset[T]): Dataset[U] = ... ds .transform(featurize) .transform(...) Parameters:t - (undocumented)Returns:(undocumented)Since:1.6.0