Enum QueryJobConfiguration.JobCreationMode

java.lang.Object
java.lang.Enum<QueryJobConfiguration.JobCreationMode>
com.google.cloud.bigquery.QueryJobConfiguration.JobCreationMode
All Implemented Interfaces:
Serializable, Comparable<QueryJobConfiguration.JobCreationMode>
Enclosing class:
QueryJobConfiguration

public static enum QueryJobConfiguration.JobCreationMode extends Enum<QueryJobConfiguration.JobCreationMode>
Job Creation Mode provides different options on job creation.
  • Enum Constant Details

    • JOB_CREATION_MODE_UNSPECIFIED

      public static final QueryJobConfiguration.JobCreationMode JOB_CREATION_MODE_UNSPECIFIED
      Unspecified JobCreationMode, defaults to JOB_CREATION_REQUIRED.
    • JOB_CREATION_REQUIRED

      public static final QueryJobConfiguration.JobCreationMode JOB_CREATION_REQUIRED
      Default. Job creation is always required.
    • JOB_CREATION_OPTIONAL

      public static final QueryJobConfiguration.JobCreationMode JOB_CREATION_OPTIONAL
      Job creation is optional. Returning immediate results is prioritized. BigQuery will automatically determine if a Job needs to be created. The conditions under which BigQuery can decide to not create a Job are subject to change. If Job creation is required, JOB_CREATION_REQUIRED mode should be used, which is the default.
  • Method Details

    • values

      public static QueryJobConfiguration.JobCreationMode[] 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 QueryJobConfiguration.JobCreationMode 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