Class MaterializedViewDefinition (2.34.2)

public abstract class MaterializedViewDefinition extends TableDefinition

Inheritance

java.lang.Object > TableDefinition > MaterializedViewDefinition

Static Methods

newBuilder(String query)

public static MaterializedViewDefinition.Builder newBuilder(String query)

Returns a builder for a BigQuery materialized view definition.

Parameter
NameDescription
queryString

the query used to generate the materialized view

Returns
TypeDescription
MaterializedViewDefinition.Builder

of(String query)

public static MaterializedViewDefinition of(String query)

Returns a builder for a BigQuery materialized view definition.

Parameter
NameDescription
queryString

the query used to generate the materialized view

Returns
TypeDescription
MaterializedViewDefinition

Constructors

MaterializedViewDefinition()

public MaterializedViewDefinition()

Methods

getClustering()

public abstract Clustering getClustering()

Returns the clustering configuration for this table. If null, the table is not clustered.

Returns
TypeDescription
Clustering

getEnableRefresh()

public abstract Boolean getEnableRefresh()

Returns enable automatic refresh of the materialized view when the base table is updated. The default value is "true".

Returns
TypeDescription
Boolean

getLastRefreshTime()

public abstract Long getLastRefreshTime()

Returns time when this materialized view was last modified, in milliseconds since the epoch.

Returns
TypeDescription
Long

getQuery()

public abstract String getQuery()

Returns a query whose result is persisted.

Returns
TypeDescription
String

getRangePartitioning()

public abstract RangePartitioning getRangePartitioning()

Returns the range partitioning configuration for this table. If null, the table is not range-partitioned.

Returns
TypeDescription
RangePartitioning

getRefreshIntervalMs()

public abstract Long getRefreshIntervalMs()

Returns a maximum frequency at which this materialized view will be refreshed. The default value is "1800000" (30 minutes).

Returns
TypeDescription
Long

getTimePartitioning()

public abstract TimePartitioning getTimePartitioning()

Returns the time partitioning configuration for this table. If null, the table is not time-partitioned.

Returns
TypeDescription
TimePartitioning

toBuilder()

public abstract MaterializedViewDefinition.Builder toBuilder()

Returns a builder for the MaterializedViewDefinition object.

Returns
TypeDescription
MaterializedViewDefinition.Builder
Overrides