Package com.clickhouse.client.config
Enum ClickHouseRenameMethod
- java.lang.Object
-
- java.lang.Enum<ClickHouseRenameMethod>
-
- com.clickhouse.client.config.ClickHouseRenameMethod
-
- All Implemented Interfaces:
Serializable,Comparable<ClickHouseRenameMethod>
public enum ClickHouseRenameMethod extends Enum<ClickHouseRenameMethod>
Methods for renaming.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONENo OP.REMOVE_PREFIXRemoves prefix including the dot.TO_CAMELCASEReplaces whitespace and underscore to camel case.TO_CAMELCASE_WITHOUT_PREFIXRemoves prefix and replace whitespace and underscore to camel case.TO_UNDERSCOREReplaces whitespace and camel case to underscore.TO_UNDERSCORE_WITHOUT_PREFIXRemoves prefix and replace whitespace and camel case to underscore.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringrename(String name)Rename the given name.static ClickHouseRenameMethodvalueOf(String name)Returns 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 Detail
-
NONE
public static final ClickHouseRenameMethod NONE
No OP.
-
REMOVE_PREFIX
public static final ClickHouseRenameMethod REMOVE_PREFIX
Removes prefix including the dot. So "d.t.col1" becomes "col1" and "col2" remains the same.
-
TO_CAMELCASE
public static final ClickHouseRenameMethod 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
public static final ClickHouseRenameMethod TO_CAMELCASE_WITHOUT_PREFIX
Removes prefix and replace whitespace and underscore to camel case.
-
TO_UNDERSCORE
public static final ClickHouseRenameMethod TO_UNDERSCORE
Replaces whitespace and camel case to underscore. So "aSimpleColumn" becomes "a_simple_column" and "col12" becomes "col_12".
-
TO_UNDERSCORE_WITHOUT_PREFIX
public static final ClickHouseRenameMethod TO_UNDERSCORE_WITHOUT_PREFIX
Removes prefix and replace whitespace and camel case to underscore.
-
-
Method Detail
-
values
public static ClickHouseRenameMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ClickHouseRenameMethod c : ClickHouseRenameMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClickHouseRenameMethod valueOf(String name)
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
-
-