Class ViewDefinition.Builder (2.40.3)

public abstract static class ViewDefinition.Builder extends TableDefinition.Builder<ViewDefinition,ViewDefinition.Builder>

Inheritance

java.lang.Object > TableDefinition.Builder > ViewDefinition.Builder

Constructors

Builder()

public Builder()

Methods

build()

public abstract ViewDefinition build()

Creates a ViewDefinition object.

Returns
Type Description
ViewDefinition
Overrides

setQuery(String query)

public abstract ViewDefinition.Builder setQuery(String query)

Sets the query used to create the view.

Parameter
Name Description
query String
Returns
Type Description
ViewDefinition.Builder

setSchema(Schema schema)

public abstract ViewDefinition.Builder setSchema(Schema schema)

Sets the table schema.

Parameter
Name Description
schema Schema
Returns
Type Description
ViewDefinition.Builder
Overrides

setType(TableDefinition.Type type)

public abstract ViewDefinition.Builder setType(TableDefinition.Type type)
Parameter
Name Description
type TableDefinition.Type
Returns
Type Description
ViewDefinition.Builder
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
Returns
Type Description
ViewDefinition.Builder

setUserDefinedFunctions(UserDefinedFunction[] userDefinedFunctions)

public ViewDefinition.Builder setUserDefinedFunctions(UserDefinedFunction[] userDefinedFunctions)

Sets user defined functions that can be used by #getQuery(). See Also: User-Defined Functions

Parameter
Name Description
userDefinedFunctions UserDefinedFunction[]
Returns
Type Description
ViewDefinition.Builder

setUserDefinedFunctions(List<UserDefinedFunction> userDefinedFunctions)

public ViewDefinition.Builder setUserDefinedFunctions(List<UserDefinedFunction> userDefinedFunctions)

Sets user defined functions that can be used by #getQuery(). See Also: User-Defined Functions

Parameter
Name Description
userDefinedFunctions List<UserDefinedFunction>
Returns
Type Description
ViewDefinition.Builder