com.spotify.scio.avro.types.AvroType
Macro annotation for a file which contains Avro schema.
Generate case classes for an Avro schema. File can be either local or remote files. For example file can be located on Google Cloud Storage (GCS):
@AvroType.fromSchemaFile("gs://myBucket/myFolder/schema-file.avsc") class MyRecord
For local files, you need to either provide absolute path, or path relative to project root directory. For example:
@AvroType.fromSchemaFile("sub-project/src/main/avro/schema-file.avsc") class MyRecord
Also generate a companion object with convenience methods.
Macro annotation for a file which contains Avro schema.
Generate case classes for an Avro schema. File can be either local or remote files. For example file can be located on Google Cloud Storage (GCS):
For local files, you need to either provide absolute path, or path relative to project root directory. For example:
Also generate a companion object with convenience methods.