Package

org.apache.spark.sql

custom

Permalink

package custom

Visibility
  1. Public
  2. All

Type Members

  1. class ExpressionEvaluator[T <: Product, R] extends AnyRef

    Permalink

    ExpressionEvaluator can evaluate a Spark SQL expression against a case class

    ExpressionEvaluator can evaluate a Spark SQL expression against a case class

    T

    class of object the expression should be evaluated on

    R

    class of expressions expected return type. This might also be set Any, in that case the result type check is omitted and complex datatypes will not be mapped to case classes, as they are not specified.

  2. class RowDecoder[T <: Product] extends Serializable

    Permalink

    Spark row to case class Decoder.

    Spark row to case class Decoder. This can be used for example in UDF's with struct parameters, which are mapped as Row in Spark 2.x (Spark 3.x supports case classes as parameters directly) If you have to decode multiple rows (like in a UDF) it's important to instantiate the RowDecoder only once (outside the UDF) and reuse it for all rows.

    T

    the case class to be produced

Value Members

  1. object ExpressionEvaluator

    Permalink

Ungrouped