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
CoderProviders.-
Method Summary
Modifier and TypeMethodDescriptionstatic CoderProviderforCoder(TypeDescriptor<?> type, Coder<?> coder) Creates aCoderProviderthat always returns the given coder for the specified type.static CoderProviderfromStaticMethods(Class<?> rawType, Class<?> coderClazz) Creates aCoderProviderfrom a class'sstatic <T> Coder<T> of(TypeDescriptor<T>, List<Coder<?>>) method.
-
Method Details
-
fromStaticMethods
Creates aCoderProviderfrom a class'sstatic <T> Coder<T> of(TypeDescriptor<T>, List<Coder<?>>) method. -
forCoder
Creates aCoderProviderthat always returns the given coder for the specified type.
-