Package org.apache.drill.exec.client
Enum ServerMethod
- All Implemented Interfaces:
Serializable
,Comparable<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 Summary
Enum ConstantDescriptionCancel an existing queryGet catalog metadataGet columns metadataGet schemas metadataGet server metadataGet tables metadataPlan a query without executing itPrepare a query for deferred executionResume a querySubmitting a query -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerMethod
Returns the enum constant of this type with the specified name.static ServerMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RUN_QUERY
Submitting a query -
PLAN_QUERY
Plan a query without executing it -
CANCEL_QUERY
Cancel an existing query -
RESUME_PAUSED_QUERY
Resume a query -
PREPARED_STATEMENT
Prepare a query for deferred execution -
GET_CATALOGS
Get catalog metadata -
GET_SCHEMAS
Get schemas metadata -
GET_TABLES
Get tables metadata -
GET_COLUMNS
Get columns metadata -
GET_SERVER_META
Get server metadata
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getMinVersion
-