ai.catboost.spark.impl.RowEncoderConstructor.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of catboost-spark_3.5_2.12 Show documentation
Show all versions of catboost-spark_3.5_2.12 Show documentation
JVM module to use CatBoost on Apache Spark
The newest version!
package ai.catboost.spark.impl
import org.apache.spark.sql.Row
import org.apache.spark.sql.catalyst.encoders.ExpressionEncoder
import org.apache.spark.sql.types.StructType
object RowEncoderConstructor {
def construct(schema: StructType) : ExpressionEncoder[Row] = {
ExpressionEncoder(schema)
}
}