pub struct MaterializedViewDefinition {
pub allow_non_incremental_definition: Option<bool>,
pub enable_refresh: Option<bool>,
pub last_refresh_time: Option<i64>,
pub max_staleness: Option<Vec<u8>>,
pub query: Option<String>,
pub refresh_interval_ms: Option<i64>,
}Expand description
Definition and configuration of a materialized view.
This type is not used in any activity, and only used as part of another schema.
Fields§
§allow_non_incremental_definition: Option<bool>Optional. This option declares the intention to construct a materialized view that isn’t refreshed incrementally. Non-incremental materialized views support an expanded range of SQL queries. The allow_non_incremental_definition option can’t be changed after the materialized view is created.
enable_refresh: Option<bool>Optional. Enable automatic refresh of the materialized view when the base table is updated. The default value is “true”.
last_refresh_time: Option<i64>Output only. The time when this materialized view was last refreshed, in milliseconds since the epoch.
max_staleness: Option<Vec<u8>>[Optional] Max staleness of data that could be returned when materizlized view is queried (formatted as Google SQL Interval type).
query: Option<String>Required. A query whose results are persisted.
refresh_interval_ms: Option<i64>Optional. The maximum frequency at which this materialized view will be refreshed. The default value is “1800000” (30 minutes).
Trait Implementations§
Source§impl Clone for MaterializedViewDefinition
impl Clone for MaterializedViewDefinition
Source§fn clone(&self) -> MaterializedViewDefinition
fn clone(&self) -> MaterializedViewDefinition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more