Packages

case class UserDefinedPythonDataSource(dataSourceCls: PythonFunction) extends Product with Serializable

A user-defined Python data source. This is used by the Python API. Defines the interation between Python and JVM.

dataSourceCls

The Python data source class.

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

Instance Constructors

  1. new UserDefinedPythonDataSource(dataSourceCls: PythonFunction)

    dataSourceCls

    The Python data source class.

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. def commitWriteInPython(writer: Array[Byte], messages: Array[WriterCommitMessage], abort: Boolean = false): Unit

    (Driver-side) Run Python process to either commit or abort a write operation.

  7. def createDataSourceInPython(shortName: String, options: CaseInsensitiveStringMap, userSpecifiedSchema: Option[StructType]): PythonDataSourceCreationResult

    (Driver-side) Run Python process, and get the pickled Python Data Source instance and its schema.

  8. def createMapInBatchEvaluatorFactory(pickledFunc: Array[Byte], funcName: String, inputSchema: StructType, outputSchema: StructType, metrics: Map[String, SQLMetric], jobArtifactUUID: Option[String]): MapInBatchEvaluatorFactory

    (Executor-side) Create an iterator that execute the Python function.

  9. def createPythonFunction(pickledFunc: Array[Byte]): PythonFunction
  10. def createPythonMetrics(): Array[CustomMetric]
  11. def createPythonTaskMetrics(taskMetrics: Map[String, Long]): Array[CustomTaskMetric]
  12. def createReadInfoInPython(pythonResult: PythonDataSourceCreationResult, outputSchema: StructType, isStreaming: Boolean): PythonDataSourceReadInfo

    (Driver-side) Run Python process, and get the partition read functions, and partition information.

  13. def createWriteInfoInPython(provider: String, inputSchema: StructType, options: CaseInsensitiveStringMap, overwrite: Boolean, isStreaming: Boolean): PythonDataSourceWriteInfo

    (Driver-side) Run Python process and get pickled write function.

  14. val dataSourceCls: PythonFunction
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  21. def productElementNames: Iterator[String]
    Definition Classes
    Product
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped