public abstract class CoderProvider
extends java.lang.Object
CoderProvider
provides Coder
s.
It may operate on a parameterized type, such as List
, in which case the
coderFor(org.apache.beam.sdk.values.TypeDescriptor<T>, java.util.List<? extends org.apache.beam.sdk.coders.Coder<?>>)
method accepts a list of coders to use for the type parameters.
Constructor and Description |
---|
CoderProvider() |
Modifier and Type | Method and Description |
---|---|
abstract <T> Coder<T> |
coderFor(TypeDescriptor<T> typeDescriptor,
java.util.List<? extends Coder<?>> componentCoders)
Returns a
Coder<T> to use for values of a particular type, given the Coders for each of
the type's generic parameter types. |
public abstract <T> Coder<T> coderFor(TypeDescriptor<T> typeDescriptor, java.util.List<? extends Coder<?>> componentCoders) throws CannotProvideCoderException
Coder<T>
to use for values of a particular type, given the Coders for each of
the type's generic parameter types.
Throws CannotProvideCoderException
if this CoderProvider
cannot provide
a coder for this type and components.
CannotProvideCoderException