KafkaRecordToRowConverter¶
kafkaSchema¶
kafkaSchema(
includeHeaders: Boolean): StructType
kafkaSchema
is schemaWithHeaders for the given includeHeaders
enabled. Otherwise, kafkaSchema
is schemaWithoutHeaders.
kafkaSchema
is used when:
KafkaRelation
is requested for the schemaKafkaScan
is requested for the readSchemaKafkaSource
(Spark Structured Streaming) is requested for theschema
KafkaSourceProvider
is requested for the sourceSchemaKafkaTable
is requested for the schema