Enum ClickHouseProtocol

java.lang.Object
java.lang.Enum<ClickHouseProtocol>
com.clickhouse.client.ClickHouseProtocol
All Implemented Interfaces:
Serializable, Comparable<ClickHouseProtocol>, java.lang.constant.Constable

@Deprecated public enum ClickHouseProtocol extends Enum<ClickHouseProtocol>
Deprecated.
This defines protocols can be used to connect to ClickHouse.
  • Enum Constant Details

    • ANY

      public static final ClickHouseProtocol ANY
      Deprecated.
      Protocol detection is needed when establishing connection.
    • LOCAL

      public static final ClickHouseProtocol LOCAL
      Deprecated.
      Local/File interface.
    • HTTP

      public static final ClickHouseProtocol HTTP
      Deprecated.
      HTTP/HTTPS interface.
    • TCP

      public static final ClickHouseProtocol TCP
      Deprecated.
      Native interface.
    • MYSQL

      public static final ClickHouseProtocol MYSQL
      Deprecated.
      MySQL interface.
    • POSTGRESQL

      public static final ClickHouseProtocol POSTGRESQL
      Deprecated.
      PostgreSQL interface.
    • GRPC

      public static final ClickHouseProtocol GRPC
      Deprecated.
      GRPC interface.
  • Method Details

    • values

      public static ClickHouseProtocol[] values()
      Deprecated.
      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

      public static ClickHouseProtocol valueOf(String name)
      Deprecated.
      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
    • fromUriScheme

      public static ClickHouseProtocol fromUriScheme(String scheme)
      Deprecated.
      Gets most suitable protocol according to given URI scheme.
      Parameters:
      scheme - case insensitive URI scheme
      Returns:
      suitable protocol, ANY if not found
    • getDefaultPort

      public int getDefaultPort()
      Deprecated.
      Get default port used by the protocol.
      Returns:
      default port used by the protocol
    • getDefaultSecurePort

      public int getDefaultSecurePort()
      Deprecated.
      Get default secure port used by the protocol.
      Returns:
      default secure port used by the protocol
    • getUriSchemes

      public List<String> getUriSchemes()
      Deprecated.
      Gets supported URI schemes.
      Returns:
      URI schemes