org.apache.spark.sql.execution.python
UserDefinedPythonTableFunction
Companion class UserDefinedPythonTableFunction
object UserDefinedPythonTableFunction extends Serializable
- Alphabetic
- By Inheritance
- UserDefinedPythonTableFunction
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
analyzeInPython(func: PythonFunction, exprs: Seq[Expression], tableArgs: Seq[Boolean]): PythonUDTFAnalyzeResult
Runs the Python UDTF's
analyzestatic method.Runs the Python UDTF's
analyzestatic method.When the Python UDTF is defined without a static return type, the analyzer will call this while resolving table-valued functions.
This expects the Python UDTF to have
analyzestatic method that take arguments:- The number and order of arguments are the same as the UDTF inputs - Each argument is an
AnalyzeArgument, containing:- data_type: DataType
- value: Any: if the argument is foldable; otherwise None
- is_table: bool: True if the argument is TABLE
and that return an
AnalyzeResult.It serializes/deserializes the data types via JSON, and the values for the case the argument is foldable are pickled.
AnalysisExceptionwith the error class "TABLE_VALUED_FUNCTION_FAILED_TO_ANALYZE_IN_PYTHON" will be thrown when an exception is raised in Python. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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()