I would like to use my AutoValue data classes as object types in my PCollection, but I'm having trouble using an automatic coder for it:
@AutoValue
public abstract class MyPersonClass {
public abstract String getName();
public abstract Integer getAge();
public abstract Float getHeight();
public static MyPersonClass create(String name, Integer age, Float height) {
return new AutoValue_MyPersonClass(name, age, height);
}
}
Whenever I use this, I get errors from Beam trying to choose a coder. I do not want to define my own coder for it.
How can I use a coder that infers the schema of my AutoValue class? Or can a different coder be automatically inferred for it?