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
Ordering
- Alphabetic
- By Inheritance
Inherited
- KafkaStreamDataWriter
- DataWriter
- KafkaRowWriter
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
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
topicfield in the incoming data.- producerParams
Parameters to use for the Kafka producer.
- inputSchema
The attributes in the input data.
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
abort(): Unit
- Definition Classes
- KafkaStreamDataWriter → DataWriter
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
checkForErrors(): Unit
- Attributes
- protected
- Definition Classes
- KafkaRowWriter
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def close(): Unit
-
def
commit(): WriterCommitMessage
- Definition Classes
- KafkaStreamDataWriter → DataWriter
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
var
failedWrite: Exception
- Attributes
- protected
- Definition Classes
- KafkaRowWriter
-
def
finalize(): Unit
- Attributes
- protected[java.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()
-
val
projection: UnsafeProjection
- Attributes
- protected
- Definition Classes
- KafkaRowWriter
-
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
-
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
- @native() @throws( ... )
-
def
write(row: InternalRow): Unit
- Definition Classes
- KafkaStreamDataWriter → DataWriter