The builder for BigQueryDataSourceSpecBuilder
.
Methods
Method | Return type | Brief description |
---|---|---|
build() | DataSourceSpec | Builds a data source specification from the settings in this builder. |
copy() | DataSourceSpecBuilder | Creates a DataSourceSpecBuilder based on this data source's settings. |
getDatasetId() | String | Gets the BigQuery dataset ID. |
getParameters() | DataSourceParameter[] | Gets the parameters of the data source. |
getProjectId() | String | Gets the billing project ID. |
getRawQuery() | String | Gets the raw query string. |
getTableId() | String | Gets the BigQuery table ID. |
getTableProjectId() | String | Gets the BigQuery project ID for the table. |
getType() | DataSourceType | Gets the type of the data source. |
removeAllParameters() | BigQueryDataSourceSpecBuilder | Removes all the parameters. |
removeParameter(parameterName) | BigQueryDataSourceSpecBuilder | Removes the specified parameter. |
setDatasetId(datasetId) | BigQueryDataSourceSpecBuilder | Sets the BigQuery dataset ID. |
setParameterFromCell(parameterName, sourceCell) | BigQueryDataSourceSpecBuilder | Adds a parameter, or if the parameter with the name exists, updates its source cell. |
setProjectId(projectId) | BigQueryDataSourceSpecBuilder | Sets the billing BigQuery project ID. |
setRawQuery(rawQuery) | BigQueryDataSourceSpecBuilder | Sets the raw query string. |
setTableId(tableId) | BigQueryDataSourceSpecBuilder | Sets the BigQuery table ID. |
setTableProjectId(projectId) | BigQueryDataSourceSpecBuilder | Sets the BigQuery project ID for the table. |
Detailed documentation
build()
Builds a data source specification from the settings in this builder. Must use as...()
to specify a data source type before building.
Return
DataSourceSpec
— The data source specification.
copy()
Creates a DataSourceSpecBuilder
based on this data source's settings.
Return
DataSourceSpecBuilder
— The builder.
getDatasetId()
Gets the BigQuery dataset ID.
Return
String
— The dataset ID, or an empty string if the data source spec is defined by a raw query.
getParameters()
getProjectId()
Gets the billing project ID.
Return
String
— The project ID.
getRawQuery()
Gets the raw query string.
Return
String
— The raw query string.
getTableId()
Gets the BigQuery table ID.
Return
String
— The table ID, or an empty string if the data source spec is defined by a raw query.
getTableProjectId()
Gets the BigQuery project ID for the table.
Return
String
— The table project ID, or an empty string if the data source spec is defined by a raw
query.
getType()
removeAllParameters()
removeParameter(parameterName)
Removes the specified parameter.
Parameters
Name | Type | Description |
---|---|---|
parameterName | String | The name of the parameter to remove. |
Return
BigQueryDataSourceSpecBuilder
— The builder, for chaining.
setDatasetId(datasetId)
Sets the BigQuery dataset ID.
Parameters
Name | Type | Description |
---|---|---|
datasetId | String | The ID of the dataset. |
Return
BigQueryDataSourceSpecBuilder
— This builder, for chaining.
setParameterFromCell(parameterName, sourceCell)
Adds a parameter, or if the parameter with the name exists, updates its source cell.
Parameters
Name | Type | Description |
---|---|---|
parameterName | String | The parameter name. |
sourceCell | String | The source cell, as specified in A1 notation. |
Return
BigQueryDataSourceSpecBuilder
— The builder, for chaining.
setProjectId(projectId)
Sets the billing BigQuery project ID.
Parameters
Name | Type | Description |
---|---|---|
projectId | String | The ID of the billing project. |
Return
BigQueryDataSourceSpecBuilder
— The builder, for chaining.
setRawQuery(rawQuery)
Sets the raw query string.
Parameters
Name | Type | Description |
---|---|---|
rawQuery | String | The raw query string. |
Return
BigQueryDataSourceSpecBuilder
— The builder, for chaining.
setTableId(tableId)
Sets the BigQuery table ID.
Parameters
Name | Type | Description |
---|---|---|
tableId | String | The ID of the table. |
Return
BigQueryDataSourceSpecBuilder
— This builder, for chaining.
setTableProjectId(projectId)
Sets the BigQuery project ID for the table.
Parameters
Name | Type | Description |
---|---|---|
projectId | String | The project ID of the BigQuery table. |
Return
BigQueryDataSourceSpecBuilder
— The builder, for chaining.