public abstract class MaterializedViewDefinition extends TableDefinition
Modifier and Type | Class and Description |
---|---|
static class |
MaterializedViewDefinition.Builder |
TableDefinition.Type
Constructor and Description |
---|
MaterializedViewDefinition() |
Modifier and Type | Method and 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 the
MaterializedViewDefinition object. |
getSchema, getType
@Nullable public abstract Long getLastRefreshTime()
@Nullable public abstract Boolean getEnableRefresh()
@Nullable public abstract Long getRefreshIntervalMs()
@Nullable public abstract TimePartitioning getTimePartitioning()
null
, the table is not
time-partitioned.@Nullable public abstract RangePartitioning getRangePartitioning()
null
, the table is not
range-partitioned.@Nullable public abstract Clustering getClustering()
null
, the table is not
clustered.public abstract MaterializedViewDefinition.Builder toBuilder()
MaterializedViewDefinition
object.toBuilder
in class TableDefinition
public static MaterializedViewDefinition.Builder newBuilder(String query)
query
- the query used to generate the materialized viewpublic static MaterializedViewDefinition of(String query)
query
- the query used to generate the materialized viewCopyright © 2023 Google LLC. All rights reserved.