org.apache.spark.sql.execution.streaming.sources
ForeachWriterTable
Companion object ForeachWriterTable
case class ForeachWriterTable[T](writer: ForeachWriter[T], converter: Either[ExpressionEncoder[T], (InternalRow) => T]) extends Table with SupportsWrite with Product with Serializable
A write-only table for forwarding data into the specified ForeachWriter.
- T
The expected type of the sink.
- writer
The ForeachWriter to process all data.
- converter
An object to convert internal rows to target type T. Either it can be a ExpressionEncoder or a direct converter function.
- Alphabetic
- By Inheritance
- ForeachWriterTable
- Serializable
- Product
- Equals
- SupportsWrite
- Table
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ForeachWriterTable(writer: ForeachWriter[T], converter: Either[ExpressionEncoder[T], (InternalRow) => T])
- writer
The ForeachWriter to process all data.
- converter
An object to convert internal rows to target type T. Either it can be a ExpressionEncoder or a direct converter function.
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def capabilities(): Set[TableCapability]
- Definition Classes
- ForeachWriterTable → Table
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val converter: Either[ExpressionEncoder[T], (InternalRow) => T]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def name(): String
- Definition Classes
- ForeachWriterTable → Table
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newWriteBuilder(info: LogicalWriteInfo): WriteBuilder
- Definition Classes
- ForeachWriterTable → SupportsWrite
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def partitioning(): Array[Transform]
- Definition Classes
- Table
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def properties(): Map[String, String]
- Definition Classes
- Table
- def schema(): StructType
- Definition Classes
- ForeachWriterTable → Table
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- val writer: ForeachWriter[T]