Package org.apache.beam.sdk.coders
Enum Class CannotProvideCoderException.ReasonCode
java.lang.Object
java.lang.Enum<CannotProvideCoderException.ReasonCode>
org.apache.beam.sdk.coders.CannotProvideCoderException.ReasonCode
- All Implemented Interfaces:
Serializable
,Comparable<CannotProvideCoderException.ReasonCode>
,Constable
- Enclosing class:
CannotProvideCoderException
public static enum CannotProvideCoderException.ReasonCode
extends Enum<CannotProvideCoderException.ReasonCode>
Indicates the reason that
Coder
inference failed.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe reason a coder could not be provided is because the type variableT
is over specified with multiple incompatible coders.The reason a coder could not be provided is type erasure, for example when requesting coder inference for aList<T>
whereT
is unknown.The reason a coder could not be provided is unknown or does not have an establishedCannotProvideCoderException.ReasonCode
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
The reason a coder could not be provided is unknown or does not have an establishedCannotProvideCoderException.ReasonCode
. -
TYPE_ERASURE
The reason a coder could not be provided is type erasure, for example when requesting coder inference for aList<T>
whereT
is unknown. -
OVER_SPECIFIED
The reason a coder could not be provided is because the type variableT
is over specified with multiple incompatible coders.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-