Package org.apache.beam.sdk.coders
Annotation 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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
ACoderProviderRegistrar
that registers aCoderProvider
which can use the@DefaultCoder
annotation to providecoder providers
that createsCoder
s. -
Required Element Summary
Required Elements
-
Element Details
-
value
-