Package com.clickhouse.config
Enum ClickHouseRenameMethod
- All Implemented Interfaces:
Serializable,Comparable<ClickHouseRenameMethod>,java.lang.constant.Constable
Methods for renaming.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo OP.Removes prefix including the dot.Replaces whitespace and underscore to camel case.Removes prefix and replace whitespace and underscore to camel case.Replaces whitespace and camel case to underscore.Removes prefix and replace whitespace and camel case to underscore. -
Method Summary
Modifier and TypeMethodDescriptionRename the given name.static ClickHouseRenameMethodReturns the enum constant of this type with the specified name.static ClickHouseRenameMethod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
No OP. -
REMOVE_PREFIX
Removes prefix including the dot. So "d.t.col1" becomes "col1" and "col2" remains the same. -
TO_CAMELCASE
Replaces whitespace and underscore to camel case. So "a simple_column" becomes "aSimpleColumn" and "col_1 2" becomes "col12". -
TO_CAMELCASE_WITHOUT_PREFIX
Removes prefix and replace whitespace and underscore to camel case. -
TO_UNDERSCORE
Replaces whitespace and camel case to underscore. So "aSimpleColumn" becomes "a_simple_column" and "col12" becomes "col_12". -
TO_UNDERSCORE_WITHOUT_PREFIX
Removes prefix and replace whitespace and camel case to underscore.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
rename
Rename the given name.- Parameters:
name- name to change- Returns:
- non-null new name
-