Enum Class CaseNormalizationOption
- All Implemented Interfaces:
Serializable
,Comparable<CaseNormalizationOption>
,Constable
A setting to control the behavior for normalizing case in column names
automatically inferred from a header in the input Excel data. Because Spark is not case-sensitive
by default and Foundry schemas do not allow columns differing only in case,
it is recommended to use either the CONVERT_TO_UPPERCASE or CONVERT_TO_LOWERCASE
options to avoid issues when column names differing only in case are present in the data,
especially for incremental pipelines where new data needs to be merged with existing data and the
schemas need to be reconciled.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic CaseNormalizationOption
Returns the enum constant of this class with the specified name.static CaseNormalizationOption[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DO_NOT_NORMALIZE
-
CONVERT_TO_UPPERCASE
-
CONVERT_TO_LOWERCASE
-
-
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
-