Enum ClickHouseDefaults

  • All Implemented Interfaces:
    ClickHouseOption, Serializable, Comparable<ClickHouseDefaults>

    public enum ClickHouseDefaults
    extends Enum<ClickHouseDefaults>
    implements ClickHouseOption
    System-wide default options. System properties and environment variables can be set to change default value.

    For example, by default ASYNC is set to true. However, you can change it to false by either specifying -Ddefault_async=false on the Java command line, or setting environment variable DEFAULT_ASYNC=false.

    • Method Detail

      • values

        public static ClickHouseDefaults[] 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 (ClickHouseDefaults c : ClickHouseDefaults.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ClickHouseDefaults 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
      • getPrefix

        public String getPrefix()
        Description copied from interface: ClickHouseOption
        Gets prefix of environment variable and system property.
        Specified by:
        getPrefix in interface ClickHouseOption
        Returns:
        prefix of environment variable and system property