JobQuery class

Constructors

JobQuery({Input<bool?>? allowLargeResults, Input<List<JobQueryConnectionProperty>?>? connectionProperties, Input<bool?>? continuous, Input<String?>? createDisposition, Input<JobQueryDefaultDataset?>? defaultDataset, Input<JobQueryDestinationEncryptionConfiguration?>? destinationEncryptionConfiguration, Input<JobQueryDestinationTable?>? destinationTable, Input<bool?>? flattenResults, Input<int?>? maximumBillingTier, Input<String?>? maximumBytesBilled, Input<String?>? parameterMode, Input<String?>? priority, required Input<String> query, Input<List<String>?>? schemaUpdateOptions, Input<JobQueryScriptOptions?>? scriptOptions, Input<bool?>? useLegacySql, Input<bool?>? useQueryCache, Input<List<JobQueryUserDefinedFunctionResource>?>? userDefinedFunctionResources, Input<String?>? writeDisposition})
Creates a new JobQuery. allowLargeResults If true and query uses legacy SQL dialect, allows the query to produce arbitrarily large result tables at a slight cost in performance. connectionProperties Connection properties to customize query behavior. Under JDBC, these correspond continuous (Optional, Beta) createDisposition Specifies whether the job is allowed to create new tables. The following values are supported: defaultDataset Specifies the default dataset to use for unqualified table names in the query. Note that this does not alter behavior of unqualified dataset names. destinationEncryptionConfiguration Custom encryption configuration (e.g., Cloud KMS keys) destinationTable Describes the table where the query results should be stored. flattenResults If true and query uses legacy SQL dialect, flattens all nested and repeated fields in the query results. maximumBillingTier Limits the billing tier for this job. Queries that have resource usage beyond this tier will fail (without incurring a charge). maximumBytesBilled Limits the bytes billed for this job. Queries that will have bytes billed beyond this limit will fail (without incurring a charge). parameterMode Standard SQL only. Set to POSITIONAL to use positional (?) query parameters or to NAMED to use named (@myparam) query parameters in this query. priority Specifies a priority for the query. query SQL query text to execute. The useLegacySql field can be used to indicate whether the query uses legacy SQL or standard SQL. schemaUpdateOptions Allows the schema of the destination table to be updated as a side effect of the query job. scriptOptions Options controlling the execution of scripts. useLegacySql Specifies whether to use BigQuery's legacy SQL dialect for this query. The default value is true. useQueryCache Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever userDefinedFunctionResources Describes user-defined function resources used in the query. writeDisposition Specifies the action that occurs if the destination table already exists. The following values are supported:
const
JobQuery.fromMap(Map<String, dynamic> map)
factory

Properties

allowLargeResults → Input<bool?>?
If true and query uses legacy SQL dialect, allows the query to produce arbitrarily large result tables at a slight cost in performance. Requires destinationTable to be set. For standard SQL queries, this flag is ignored and large results are always allowed. However, you must still set destinationTable when result size exceeds the allowed maximum response size.
final
connectionProperties → Input<List<JobQueryConnectionProperty>?>?
Connection properties to customize query behavior. Under JDBC, these correspond directly to connection properties passed to the DriverManager. Under ODBC, these correspond to properties in the connection string. Structure is documented below.
final
continuous → Input<bool?>?
(Optional, Beta) Whether to run the query as continuous or a regular query.
final
createDisposition → Input<String?>?
Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. Creation, truncation and append actions occur as one atomic update upon job completion Default value is CREATE_IF_NEEDED. Possible values are: CREATE_IF_NEEDED, CREATE_NEVER.
final
defaultDataset → Input<JobQueryDefaultDataset?>?
Specifies the default dataset to use for unqualified table names in the query. Note that this does not alter behavior of unqualified dataset names. Structure is documented below.
final
destinationEncryptionConfiguration → Input<JobQueryDestinationEncryptionConfiguration?>?
Custom encryption configuration (e.g., Cloud KMS keys) Structure is documented below.
final
destinationTable → Input<JobQueryDestinationTable?>?
Describes the table where the query results should be stored. This property must be set for large results that exceed the maximum response size. For queries that produce anonymous (cached) results, this field will be populated by BigQuery. Structure is documented below.
final
flattenResults → Input<bool?>?
If true and query uses legacy SQL dialect, flattens all nested and repeated fields in the query results. allowLargeResults must be true if this is set to false. For standard SQL queries, this flag is ignored and results are never flattened.
final
hashCode → int
The hash code for this object.
no setterinherited
maximumBillingTier → Input<int?>?
Limits the billing tier for this job. Queries that have resource usage beyond this tier will fail (without incurring a charge). If unspecified, this will be set to your project default.
final
maximumBytesBilled → Input<String?>?
Limits the bytes billed for this job. Queries that will have bytes billed beyond this limit will fail (without incurring a charge). If unspecified, this will be set to your project default.
final
parameterMode → Input<String?>?
Standard SQL only. Set to POSITIONAL to use positional (?) query parameters or to NAMED to use named (@myparam) query parameters in this query.
final
priority → Input<String?>?
Specifies a priority for the query. Default value is INTERACTIVE. Possible values are: INTERACTIVE, BATCH.
final
query → Input<String>
SQL query text to execute. The useLegacySql field can be used to indicate whether the query uses legacy SQL or standard SQL. NOTE: queries containing DML language (DELETE, UPDATE, MERGE, INSERT) must specify createDisposition = "" and writeDisposition = "".
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schemaUpdateOptions → Input<List<String>?>?
Allows the schema of the destination table to be updated as a side effect of the query job. Schema update options are supported in two cases: when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination table is a partition of a table, specified by partition decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema. One or more of the following values are specified: ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema to nullable.
final
scriptOptions → Input<JobQueryScriptOptions?>?
Options controlling the execution of scripts. Structure is documented below.
final
useLegacySql → Input<bool?>?
Specifies whether to use BigQuery's legacy SQL dialect for this query. The default value is true. If set to false, the query will use BigQuery's standard SQL.
final
useQueryCache → Input<bool?>?
Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever tables in the query are modified. Moreover, the query cache is only available when a query does not have a destination table specified. The default value is true.
final
userDefinedFunctionResources → Input<List<JobQueryUserDefinedFunctionResource>?>?
Describes user-defined function resources used in the query. Structure is documented below.
final
writeDisposition → Input<String?>?
Specifies the action that occurs if the destination table already exists. The following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table data and uses the schema from the query result. WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion. Default value is WRITE_EMPTY. Possible values are: WRITE_TRUNCATE, WRITE_APPEND, WRITE_EMPTY.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited