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