Packages

c

org.apache.spark.sql.catalyst.expressions

PythonUDTFAnalyzeResult

case class PythonUDTFAnalyzeResult(schema: StructType, withSinglePartition: Boolean, partitionByExpressions: Seq[Expression], orderByExpressions: Seq[SortOrder]) extends Product with Serializable

Represents the result of invoking the polymorphic 'analyze' method on a Python user-defined table function. This returns the table function's output schema in addition to other optional metadata.

schema

result schema of this particular function call in response to the particular arguments provided, including the types of any provided scalar arguments (and their values, in the case of literals) as well as the names and types of columns of the provided TABLE argument (if any)

withSinglePartition

true if the 'analyze' method explicitly indicated that the UDTF call should consume all rows of the input TABLE argument in a single instance of the UDTF class, in which case Catalyst will invoke a repartitioning to a separate stage with a single worker for this purpose

partitionByExpressions

if non-empty, this contains the list of column names that the 'analyze' method explicitly indicated that the UDTF call should partition the input table by, wherein all rows corresponding to each unique combination of values of the partitioning columns are consumed by exactly one unique instance of the UDTF class

orderByExpressions

if non-empty, this contains the list of ordering items that the 'analyze' method explicitly indicated that the UDTF call should consume the input table rows by

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PythonUDTFAnalyzeResult
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PythonUDTFAnalyzeResult(schema: StructType, withSinglePartition: Boolean, partitionByExpressions: Seq[Expression], orderByExpressions: Seq[SortOrder])

    schema

    result schema of this particular function call in response to the particular arguments provided, including the types of any provided scalar arguments (and their values, in the case of literals) as well as the names and types of columns of the provided TABLE argument (if any)

    withSinglePartition

    true if the 'analyze' method explicitly indicated that the UDTF call should consume all rows of the input TABLE argument in a single instance of the UDTF class, in which case Catalyst will invoke a repartitioning to a separate stage with a single worker for this purpose

    partitionByExpressions

    if non-empty, this contains the list of column names that the 'analyze' method explicitly indicated that the UDTF call should partition the input table by, wherein all rows corresponding to each unique combination of values of the partitioning columns are consumed by exactly one unique instance of the UDTF class

    orderByExpressions

    if non-empty, this contains the list of ordering items that the 'analyze' method explicitly indicated that the UDTF call should consume the input table rows by

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def applyToTableArgument(pythonUDTFName: String, t: FunctionTableSubqueryArgumentExpression): FunctionTableSubqueryArgumentExpression

    Applies the requested properties from this analysis result to the target TABLE argument expression of a UDTF call, throwing an error if any properties of the UDTF call are incompatible.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. val orderByExpressions: Seq[SortOrder]
  15. val partitionByExpressions: Seq[Expression]
  16. val schema: StructType
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  21. val withSinglePartition: Boolean

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped