Package org.apache.beam.sdk.coders
Class CoderProviders
java.lang.Object
org.apache.beam.sdk.coders.CoderProviders
Static utility methods for creating and working with
CoderProvider
s.-
Method Summary
Modifier and TypeMethodDescriptionstatic CoderProvider
forCoder
(TypeDescriptor<?> type, Coder<?> coder) Creates aCoderProvider
that always returns the given coder for the specified type.static CoderProvider
fromStaticMethods
(Class<?> rawType, Class<?> coderClazz) Creates aCoderProvider
from a class'sstatic <T> Coder<T> of(TypeDescriptor<T>, List<Coder<?>>
) method.
-
Method Details
-
fromStaticMethods
Creates aCoderProvider
from a class'sstatic <T> Coder<T> of(TypeDescriptor<T>, List<Coder<?>>
) method. -
forCoder
Creates aCoderProvider
that always returns the given coder for the specified type.
-