typed

inline fun <DsType, T> Column.typed(): TypedColumn<DsType, T>
inline fun <DsType, T> TypedColumn<DsType, *>.typed(): TypedColumn<DsType, T>

Provides a type hint about the expected return value of this column. This information can be used by operations such as select on a Dataset to automatically convert the results into the correct JVM types.

val df: Dataset<Row> = ...
val typedColumn: Dataset<Int> = df.select( col("a").typed<_, Int>() )

See also