Enum ClickHouseFormat

  • All Implemented Interfaces:
    Serializable, Comparable<ClickHouseFormat>

    public enum ClickHouseFormat
    extends Enum<ClickHouseFormat>
    Input / Output formats supported by ClickHouse

    Note that the sole existence of a format in this enumeration does not mean that its use is supported for any operation with this JDBC driver. When in doubt, just omit any specific format and let the driver take care of it.

    Author:
    Dmitry Andreev
    See Also:
    ClickHouse Reference Documentation
    • Method Detail

      • values

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

        public static ClickHouseFormat 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
      • supportsInput

        public boolean supportsInput()
      • supportsOutput

        public boolean supportsOutput()
      • isBinary

        public boolean isBinary()
      • isText

        public boolean isText()
      • hasHeader

        public boolean hasHeader()
      • isRowBased

        public boolean isRowBased()
        Check whether the format is row based(e.g. read/write by row), which is a very useful hint on how to process the data.
        Returns:
        true if the format is row based; false otherwise(e.g. column, document, or structured-object etc.)
      • containsFormat

        public static boolean containsFormat​(String statement)