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 ClassesNested classes/interfaces inherited from class com.google.cloud.bigquery.TableDefinition
TableDefinition.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ClusteringReturns the clustering configuration for this table.abstract BooleanReturns enable automatic refresh of the materialized view when the base table is updated.abstract LongReturns time when this materialized view was last modified, in milliseconds since the epoch.abstract StringgetQuery()Returns a query whose result is persisted.abstract RangePartitioningReturns the range partitioning configuration for this table.abstract LongReturns a maximum frequency at which this materialized view will be refreshed.abstract TimePartitioningReturns the time partitioning configuration for this table.newBuilder(String query) Returns a builder for a BigQuery materialized view definition.static MaterializedViewDefinitionReturns a builder for a BigQuery materialized view definition.abstract MaterializedViewDefinition.BuilderReturns a builder for theMaterializedViewDefinitionobject.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 theMaterializedViewDefinitionobject.- Specified by:
toBuilderin 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
-