Created
September 3, 2015 18:50
-
-
Save davidmc24/09c5938806d6b52c1fcc to your computer and use it in GitHub Desktop.
Multi-file avro
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
plugins { | |
id "com.commercehub.gradle.plugin.avro" version "0.4.0" | |
} | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
compile "org.apache.avro:avro:1.7.7" | |
} |
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
{ | |
"type" : "record", | |
"name" : "category", | |
"namespace" : "my.example", | |
"fields" : [ | |
{"name" : "id", | |
"type" : "long", | |
"default" : 0}, | |
{"name" : "program", | |
"type" : "program"} | |
] | |
} |
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
{ | |
"type" : "record", | |
"name" : "event", | |
"namespace" : "my.example", | |
"fields" : [ | |
{"name" : "id", | |
"type" : "long", | |
"default" : 0}, | |
{"name" : "program", | |
"type" : "program"} | |
] | |
} |
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
{ | |
"type" : "record", | |
"name" : "program", | |
"namespace" : "my.example", | |
"fields" : [ | |
{"name" : "id", | |
"type" : "long", | |
"default" : 0}, | |
{"name" : "name", | |
"type" : "string", | |
"default" : "NONE"} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment