Created
May 9, 2015 13:27
-
-
Save ezsi/153ff1b661198e21e7d9 to your computer and use it in GitHub Desktop.
ProtoBuf encoder for Kafka
This file contains 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
class ProtoBufEncoder(props: VerifiableProperties = null) extends Encoder[com.google.protobuf.GeneratedMessage] { | |
override def toBytes(protoBufMessage: com.google.protobuf.GeneratedMessage): Array[Byte] = protoBufMessage.toByteArray | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment