Package org.apache.beam.sdk.coders
Annotation Type DefaultCoder
-
@Documented @Retention(RUNTIME) @Target(TYPE) public @interface DefaultCoder
TheDefaultCoder
annotation specifies aCoder
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 viaCoderRegistry.getCoder(java.lang.Class<T>)
. SeeCoderRegistry
for a more detailed discussion of the precedence rules.
-
-
Element Detail
-
value
@CheckForNull java.lang.Class<? extends Coder> value
-
-