Package com.google.cloud.bigquery
Class MaterializedViewDefinition
java.lang.Object
com.google.cloud.bigquery.TableDefinition
com.google.cloud.bigquery.MaterializedViewDefinition
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.cloud.bigquery.TableDefinition
TableDefinition.Type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Clustering
Returns the clustering configuration for this table.abstract Boolean
Returns enable automatic refresh of the materialized view when the base table is updated.abstract Long
Returns time when this materialized view was last modified, in milliseconds since the epoch.abstract String
getQuery()
Returns a query whose result is persisted.abstract RangePartitioning
Returns the range partitioning configuration for this table.abstract Long
Returns a maximum frequency at which this materialized view will be refreshed.abstract TimePartitioning
Returns the time partitioning configuration for this table.newBuilder
(String query) Returns a builder for a BigQuery materialized view definition.static MaterializedViewDefinition
Returns a builder for a BigQuery materialized view definition.abstract MaterializedViewDefinition.Builder
Returns a builder for theMaterializedViewDefinition
object.Methods inherited from class com.google.cloud.bigquery.TableDefinition
getSchema, getType
-
Constructor Details
-
MaterializedViewDefinition
public MaterializedViewDefinition()
-
-
Method Details
-
getLastRefreshTime
Returns time when this materialized view was last modified, in milliseconds since the epoch. -
getQuery
Returns a query whose result is persisted. -
getEnableRefresh
Returns enable automatic refresh of the materialized view when the base table is updated. The default value is "true". -
getRefreshIntervalMs
Returns a maximum frequency at which this materialized view will be refreshed. The default value is "1800000" (30 minutes). -
getTimePartitioning
Returns the time partitioning configuration for this table. Ifnull
, the table is not time-partitioned. -
getRangePartitioning
Returns the range partitioning configuration for this table. Ifnull
, the table is not range-partitioned. -
getClustering
Returns the clustering configuration for this table. Ifnull
, the table is not clustered. -
toBuilder
Returns a builder for theMaterializedViewDefinition
object.- Specified by:
toBuilder
in classTableDefinition
-
newBuilder
Returns a builder for a BigQuery materialized view definition.- Parameters:
query
- the query used to generate the materialized view
-
of
Returns a builder for a BigQuery materialized view definition.- Parameters:
query
- the query used to generate the materialized view
-