public abstract static class ViewDefinition.Builder extends TableDefinition.Builder<ViewDefinition,ViewDefinition.Builder>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract ViewDefinition |
build()
Creates a
ViewDefinition object. |
abstract ViewDefinition.Builder |
setQuery(String query)
Sets the query used to create the view.
|
abstract ViewDefinition.Builder |
setSchema(Schema schema)
Sets the table schema.
|
abstract ViewDefinition.Builder |
setType(TableDefinition.Type type) |
abstract ViewDefinition.Builder |
setUseLegacySql(Boolean useLegacySql)
Sets whether to use BigQuery's legacy SQL dialect for this query.
|
ViewDefinition.Builder |
setUserDefinedFunctions(List<UserDefinedFunction> userDefinedFunctions)
Sets user defined functions that can be used by
ViewDefinition.getQuery() . |
ViewDefinition.Builder |
setUserDefinedFunctions(UserDefinedFunction... userDefinedFunctions)
Sets user defined functions that can be used by
ViewDefinition.getQuery() . |
public abstract ViewDefinition.Builder setQuery(String query)
public ViewDefinition.Builder setUserDefinedFunctions(List<UserDefinedFunction> userDefinedFunctions)
ViewDefinition.getQuery()
.public ViewDefinition.Builder setUserDefinedFunctions(UserDefinedFunction... userDefinedFunctions)
ViewDefinition.getQuery()
.public abstract ViewDefinition.Builder setUseLegacySql(Boolean useLegacySql)
false
. If set to false
, the query will use BigQuery's Standard SQL.
If set to null
or true
, legacy SQL dialect is used. This property is
experimental and might be subject to change.
public abstract ViewDefinition.Builder setType(TableDefinition.Type type)
setType
in class TableDefinition.Builder<ViewDefinition,ViewDefinition.Builder>
public abstract ViewDefinition.Builder setSchema(Schema schema)
setSchema
in class TableDefinition.Builder<ViewDefinition,ViewDefinition.Builder>
public abstract ViewDefinition build()
ViewDefinition
object.build
in class TableDefinition.Builder<ViewDefinition,ViewDefinition.Builder>
Copyright © 2019 Google LLC. All rights reserved.