Class UserDefinedScalarFunc

Object
org.apache.spark.sql.internal.connector.ExpressionWithToString
org.apache.spark.sql.connector.expressions.UserDefinedScalarFunc
All Implemented Interfaces:
Serializable, Expression, scala.Serializable

@Evolving public class UserDefinedScalarFunc extends org.apache.spark.sql.internal.connector.ExpressionWithToString
The general representation of user defined scalar function, which contains the upper-cased function name, canonical function name and all the children expressions.
Since:
3.4.0
See Also:
  • Constructor Details

    • UserDefinedScalarFunc

      public UserDefinedScalarFunc(String name, String canonicalName, Expression[] children)
  • Method Details

    • name

      public String name()
    • canonicalName

      public String canonicalName()
    • children

      public Expression[] children()
      Description copied from interface: Expression
      Returns an array of the children of this node. Children should not change.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object