Package com.google.cloud.bigquery
Enum QueryJobConfiguration.Priority
- java.lang.Object
-
- java.lang.Enum<QueryJobConfiguration.Priority>
-
- com.google.cloud.bigquery.QueryJobConfiguration.Priority
-
- All Implemented Interfaces:
Serializable
,Comparable<QueryJobConfiguration.Priority>
- Enclosing class:
- QueryJobConfiguration
public static enum QueryJobConfiguration.Priority extends Enum<QueryJobConfiguration.Priority>
Priority levels for a query. If not specified the priority is assumed to beINTERACTIVE
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BATCH
Query is queued and started as soon as idle resources are available, usually within a few minutes.INTERACTIVE
Query is executed as soon as possible and count towards the concurrent rate limit and the daily rate limit.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static QueryJobConfiguration.Priority
valueOf(String name)
Returns the enum constant of this type with the specified name.static QueryJobConfiguration.Priority[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTERACTIVE
public static final QueryJobConfiguration.Priority INTERACTIVE
Query is executed as soon as possible and count towards the concurrent rate limit and the daily rate limit.
-
BATCH
public static final QueryJobConfiguration.Priority BATCH
Query is queued and started as soon as idle resources are available, usually within a few minutes. If the query hasn't started within 3 hours, its priority is changed toINTERACTIVE
.
-
-
Method Detail
-
values
public static QueryJobConfiguration.Priority[] 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 (QueryJobConfiguration.Priority c : QueryJobConfiguration.Priority.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QueryJobConfiguration.Priority 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
-
-