Enum ServerMethod

java.lang.Object
java.lang.Enum<ServerMethod>
org.apache.drill.exec.client.ServerMethod
All Implemented Interfaces:
Serializable, Comparable<ServerMethod>

public enum ServerMethod extends Enum<ServerMethod>
A enumeration of server methods, and the version they were introduced it allows to introduce new methods without changing the protocol, with client being able to gracefully handle cases were method is not handled by the server.
  • Enum Constant Details

    • RUN_QUERY

      public static final ServerMethod RUN_QUERY
      Submitting a query
    • PLAN_QUERY

      public static final ServerMethod PLAN_QUERY
      Plan a query without executing it
    • CANCEL_QUERY

      public static final ServerMethod CANCEL_QUERY
      Cancel an existing query
    • RESUME_PAUSED_QUERY

      public static final ServerMethod RESUME_PAUSED_QUERY
      Resume a query
    • PREPARED_STATEMENT

      public static final ServerMethod PREPARED_STATEMENT
      Prepare a query for deferred execution
    • GET_CATALOGS

      public static final ServerMethod GET_CATALOGS
      Get catalog metadata
    • GET_SCHEMAS

      public static final ServerMethod GET_SCHEMAS
      Get schemas metadata
    • GET_TABLES

      public static final ServerMethod GET_TABLES
      Get tables metadata
    • GET_COLUMNS

      public static final ServerMethod GET_COLUMNS
      Get columns metadata
    • GET_SERVER_META

      public static final ServerMethod GET_SERVER_META
      Get server metadata
  • Method Details

    • values

      public static ServerMethod[] values()
      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 ServerMethod 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
    • getMinVersion

      public Version getMinVersion()