org.apache.spark.sql.expressions
ScalarUserDefinedFunction
Companion object ScalarUserDefinedFunction
case class ScalarUserDefinedFunction(function: AnyRef, inputEncoders: Seq[AgnosticEncoder[_]], outputEncoder: AgnosticEncoder[_], name: Option[String], nullable: Boolean, deterministic: Boolean) extends UserDefinedFunction with Product with Serializable
Holder class for a scalar user-defined function and it's input/output encoder(s).
- Alphabetic
- By Inheritance
- ScalarUserDefinedFunction
- Serializable
- Serializable
- Product
- Equals
- UserDefinedFunction
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ScalarUserDefinedFunction(function: AnyRef, inputEncoders: Seq[AgnosticEncoder[_]], outputEncoder: AgnosticEncoder[_], name: Option[String], nullable: Boolean, deterministic: Boolean)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(exprs: Column*): Column
Returns an expression that invokes the UDF, using the given arguments.
Returns an expression that invokes the UDF, using the given arguments.
- Definition Classes
- ScalarUserDefinedFunction → UserDefinedFunction
- Annotations
- @varargs()
- Since
3.4.0
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asNonNullable(): ScalarUserDefinedFunction
Updates UserDefinedFunction to non-nullable.
Updates UserDefinedFunction to non-nullable.
- Definition Classes
- ScalarUserDefinedFunction → UserDefinedFunction
- Since
3.4.0
-
def
asNondeterministic(): ScalarUserDefinedFunction
Updates UserDefinedFunction to nondeterministic.
Updates UserDefinedFunction to nondeterministic.
- Definition Classes
- ScalarUserDefinedFunction → UserDefinedFunction
- Since
3.4.0
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
deterministic: Boolean
Returns true iff the UDF is deterministic, i.e.
Returns true iff the UDF is deterministic, i.e. the UDF produces the same output given the same input.
- Definition Classes
- ScalarUserDefinedFunction → UserDefinedFunction
- Since
3.4.0
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val function: AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val inputEncoders: Seq[AgnosticEncoder[_]]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: Option[String]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
nullable: Boolean
Returns true when the UDF can return a nullable value.
Returns true when the UDF can return a nullable value.
- Definition Classes
- ScalarUserDefinedFunction → UserDefinedFunction
- Since
3.4.0
- val outputEncoder: AgnosticEncoder[_]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
withName(name: String): ScalarUserDefinedFunction
Updates UserDefinedFunction with a given name.
Updates UserDefinedFunction with a given name.
- Definition Classes
- ScalarUserDefinedFunction → UserDefinedFunction
- Since
3.4.0