This is reference project/template to understand how to define a Custom LogicalType along with Conversion.
TODO:
- Autogenerate Avro java classes with Converion in built
- Identify if we need to use velocity templates at all
- Write detailed post.
USAGE:
gradle clean build
- Run AvroExample (This has the main method)
- This created a query.avro file.
Use
java -jar avro-tools-1.9.1.jar tojson query.avro
to look at the data in the file.
NOTES:
- Notice the commented out part in
build.gradle
- The Autogenerated java class does not have the method to get the conversion.