Send feedback
Class ViewDefinition.Builder (2.42.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public abstract static class ViewDefinition.Builder extends TableDefinition.Builder<ViewDefinition,ViewDefinition.Builder>
Constructors
Builder()
Methods
build()
public abstract ViewDefinition build()
Creates a ViewDefinition
object.
Overrides
setQuery(String query)
public abstract ViewDefinition.Builder setQuery(String query)
Sets the query used to create the view.
Parameter
Name
Description
query
String
setSchema(Schema schema)
public abstract ViewDefinition.Builder setSchema(Schema schema)
Parameter
Name
Description
schema
Schema
Overrides
setType(TableDefinition.Type type)
public abstract ViewDefinition.Builder setType(TableDefinition.Type type)
Overrides
setUseLegacySql(Boolean useLegacySql)
public abstract ViewDefinition.Builder setUseLegacySql(Boolean useLegacySql)
Sets whether to use BigQuery's legacy SQL dialect for this query. By default this property is
set to 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.
Parameter
Name
Description
useLegacySql
Boolean
setUserDefinedFunctions(UserDefinedFunction[] userDefinedFunctions)
public ViewDefinition.Builder setUserDefinedFunctions(UserDefinedFunction[] userDefinedFunctions)
setUserDefinedFunctions(List<UserDefinedFunction> userDefinedFunctions)
public ViewDefinition.Builder setUserDefinedFunctions(List<UserDefinedFunction> userDefinedFunctions)
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-28 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{
"lastModified": "Last updated 2024-08-28 UTC.",
"confidential": False
}