Enum ClickHouseRenameMethod

    • Enum Constant Detail

      • 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 name
        NullPointerException - if the argument is null
      • rename

        public String rename​(String name)
        Rename the given name.
        Parameters:
        name - name to change
        Returns:
        non-null new name