Annotation Interface DefaultCoder


@Documented @Retention(RUNTIME) @Target(TYPE) public @interface DefaultCoder
The DefaultCoder annotation specifies a Coder class to handle encoding and decoding instances of the annotated class.

The specified Coder must have the following method:

 public static CoderProvider getCoderProvider().
 

Coders specified explicitly via PCollection.setCoder(org.apache.beam.sdk.coders.Coder<T>) take precedence, followed by Coders found at runtime via CoderRegistry.getCoder(java.lang.Class<T>). See CoderRegistry for a more detailed discussion of the precedence rules.