pl.touk.nussknacker.engine.kafka.generic.sinks.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nussknacker-flink-kafka-components-utils_2.13 Show documentation
Show all versions of nussknacker-flink-kafka-components-utils_2.13 Show documentation
nussknacker-flink-kafka-components-utils
package pl.touk.nussknacker.engine.kafka.generic
import pl.touk.nussknacker.engine.api.LazyParameter
import pl.touk.nussknacker.engine.api.process.{Sink, TopicName}
import pl.touk.nussknacker.engine.kafka.serialization.KafkaSerializationSchema
import pl.touk.nussknacker.engine.kafka.sink.KafkaSinkImplFactory
import pl.touk.nussknacker.engine.kafka.sink.flink.FlinkKafkaSink
import pl.touk.nussknacker.engine.kafka.{KafkaConfig, PreparedKafkaTopic}
//TODO: Move it to sink package
object sinks {
object FlinkKafkaSinkImplFactory extends KafkaSinkImplFactory {
override def prepareSink(
topic: PreparedKafkaTopic[TopicName.ForSink],
value: LazyParameter[AnyRef],
kafkaConfig: KafkaConfig,
serializationSchema: KafkaSerializationSchema[AnyRef],
clientId: String
): Sink =
new FlinkKafkaSink(topic, value, kafkaConfig, serializationSchema, clientId)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy