Package com.databricks.jdbc.common
Enum MetadataOperationType
- java.lang.Object
-
- java.lang.Enum<MetadataOperationType>
-
- com.databricks.jdbc.common.MetadataOperationType
-
- All Implemented Interfaces:
Serializable,Comparable<MetadataOperationType>
public enum MetadataOperationType extends Enum<MetadataOperationType>
Enum representing metadata operation types for SEA metadata logging. These values are sent as HTTP headers to track which metadata operation is being performed.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GET_CATALOGSGET_COLUMNSGET_CROSS_REFERENCEGET_FUNCTIONSGET_PRIMARY_KEYSGET_PROCEDURE_COLUMNSGET_PROCEDURESGET_SCHEMASGET_TABLES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHeaderValue()Returns the header value to be sent in the HTTP request.static MetadataOperationTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MetadataOperationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GET_CATALOGS
public static final MetadataOperationType GET_CATALOGS
-
GET_SCHEMAS
public static final MetadataOperationType GET_SCHEMAS
-
GET_TABLES
public static final MetadataOperationType GET_TABLES
-
GET_COLUMNS
public static final MetadataOperationType GET_COLUMNS
-
GET_FUNCTIONS
public static final MetadataOperationType GET_FUNCTIONS
-
GET_PRIMARY_KEYS
public static final MetadataOperationType GET_PRIMARY_KEYS
-
GET_CROSS_REFERENCE
public static final MetadataOperationType GET_CROSS_REFERENCE
-
GET_PROCEDURES
public static final MetadataOperationType GET_PROCEDURES
-
GET_PROCEDURE_COLUMNS
public static final MetadataOperationType GET_PROCEDURE_COLUMNS
-
-
Method Detail
-
values
public static MetadataOperationType[] 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 (MetadataOperationType c : MetadataOperationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetadataOperationType 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 nameNullPointerException- if the argument is null
-
getHeaderValue
public String getHeaderValue()
Returns the header value to be sent in the HTTP request.
-
-