Created
September 17, 2015 08:52
-
-
Save natewave/0cc1b73e814396d38ae1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val sRule = implicitly[RuleLike[AvroValue, String]] | |
val drRule = implicitly[RuleLike[AvroValue, DefectResult]] | |
def kTransform(g: GenericRecord) = RecordTransformations.convert(g, sRule) | |
def vTransform(g: GenericRecord) = RecordTransformations.convert(g, drRule) | |
val defectResults: DStream[(String, DefectResult)] = KafkaCommons.read[String, DefectResult](consumerConfig, ssc)(kTransform, vTransform) |
Author
natewave
commented
Sep 17, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment