c

org.apache.spark.sql.kafka011

KafkaStreamDataWriter

class KafkaStreamDataWriter extends KafkaRowWriter with DataWriter[InternalRow]

A DataWriter for Kafka writing. One data writer will be created in each partition to process incoming rows.

Linear Supertypes
DataWriter[InternalRow], KafkaRowWriter, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KafkaStreamDataWriter
  2. DataWriter
  3. KafkaRowWriter
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KafkaStreamDataWriter(targetTopic: Option[String], producerParams: Map[String, AnyRef], inputSchema: Seq[Attribute])

    targetTopic

    The topic that this data writer is targeting. If None, topic will be inferred from a topic field in the incoming data.

    producerParams

    Parameters to use for the Kafka producer.

    inputSchema

    The attributes in the input data.

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 abort(): Unit
    Definition Classes
    KafkaStreamDataWriter → DataWriter
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def checkForErrors(): Unit
    Attributes
    protected
    Definition Classes
    KafkaRowWriter
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. def close(): Unit
  9. def commit(): WriterCommitMessage
    Definition Classes
    KafkaStreamDataWriter → DataWriter
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. var failedWrite: Exception
    Attributes
    protected
    Definition Classes
    KafkaRowWriter
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. val projection: UnsafeProjection
    Attributes
    protected
    Definition Classes
    KafkaRowWriter
  21. def sendRow(row: InternalRow, producer: KafkaProducer[Array[Byte], Array[Byte]]): Unit

    Send the specified row to the producer, with a callback that will save any exception to failedWrite.

    Send the specified row to the producer, with a callback that will save any exception to failedWrite. Note that send is asynchronous; subclasses must flush() their producer before assuming the row is in Kafka.

    Attributes
    protected
    Definition Classes
    KafkaRowWriter
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  27. def write(row: InternalRow): Unit
    Definition Classes
    KafkaStreamDataWriter → DataWriter

Inherited from DataWriter[InternalRow]

Inherited from KafkaRowWriter

Inherited from AnyRef

Inherited from Any

Ungrouped