I've started experimenting with Beam schemas in the context of creating
custom AutoValue-based classes and using AutoValueSchema to generate
schemas and thus coders.

AFAICT, schemas need to have types fully specified, so it doesn't appear to
be possible to define an AutoValue class with a type parameter and then
create a schema for it. Basically, I want to confirm whether the following
type would ever be possible to create a schema for:

@DefaultSchema(AutoValueSchema.class)
@AutoValue
public abstract class MyClass<T> {
  public abstract T getField1();
  public abstract String getField2();
  public static <T> MyClass<T> of(T field1, String field2) {
    return new AutoValue_MyClass(field1, field2);
  }
}

This may be an entirely reasonable limitation of the schema machinery, but
I want to make sure I'm not missing something.

Reply via email to